mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #2871] [MERGED] fix: circular watcher dependencies on invite.vue causing infinite loop #4117
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/2871
Author: @amk-dev
Created: 12/6/2022
Status: ✅ Merged
Merged: 12/6/2022
Merged by: @AndrewBastin
Base:
main← Head:fix/infinite-loop-invite-vue📝 Commits (1)
758f576fix: circular watcher dependencies causing infinite loop📊 Changes
1 file changed (+16 additions, -19 deletions)
View changed files
📝
packages/hoppscotch-common/src/composables/graphql.ts(+16 -19)📄 Description
Before
There is an infinite loop caused by two watchEffects modifying dependencies in a circular way.
expectwhich modifies dependencies of WatchEffect#1After
We removes this circular dependency by
watchEffectinto awatchso we have explicit control over the reactivity, and remove tracking reactivity forsourceandisPausedin that watchupdateTickerref which is replaced by a function🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.