-
-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(vue) - Refactor lazy promise and watch effects (#1162)
* Refactor effects to use watchEffect rather than watch * Update useSubscription implementation to match useQuery * Update implementation to make queries rolling sources - The lazy promises are now resolving on the latest known query source that has been seen - The running queries are processed using one continuous stream, similar to react-urql - Issuing a new query is the only action that's flushed on 'pre' * Add changeset * Fix which effect in useQuery is set to sync v pre * Add additional test for changing query
- Loading branch information
Showing
4 changed files
with
216 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
'@urql/vue': minor | ||
--- | ||
|
||
Refactor `useQuery` to resolve the lazy promise for Vue Suspense to the latest result that has been requested as per the input to `useQuery`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.