-
Notifications
You must be signed in to change notification settings - Fork 406
chore(shared): Add React Query variant of usePageOrInfinite
#7143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
+1,278
−206
Merged
Changes from all commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
a28fa4d
feat(clerk-js): Lazy query client
panteliselef a3ad75c
wip
panteliselef e6d6561
update lock file
panteliselef 82901ad
wip
panteliselef f5c27e3
feat(shared): `useSubscription` variant with React Query
panteliselef 827f536
cleanup
panteliselef 96b68d2
bundlewatch and changeset
panteliselef c07fe17
fix lint
panteliselef 7fc1248
wip
panteliselef 7f5cb97
Revert "wip"
panteliselef 6da5615
handle init state
panteliselef 992eda8
add support for infinite
panteliselef f9b7f64
wip some a few test continue to fail
panteliselef f8bee5d
mock queryClient
panteliselef eeae1c5
Merge branch 'refs/heads/main' into elef/replace-swr-with-rq-infinite
panteliselef 73e9101
fix conflicts about `usePagesOrInfinite.swr`
panteliselef 751dd31
temp changeset
panteliselef 582f018
allow unit tests to run with rq variant
panteliselef 47f6649
run `useSubscription` tests locally for RQ variant
panteliselef fad9ac7
wip
panteliselef 83a1a06
Revert "wip"
panteliselef 7883fb3
fix(shared): Avoid revalidating first page on infinite pagination
panteliselef 5ee3992
wip
panteliselef 8e39385
Revert "wip"
panteliselef 9ff7e2a
address skipped tests
panteliselef 9e7d21d
typos
panteliselef 4a68a52
wip
panteliselef f7a21ac
fix usePlans
panteliselef b8ea10d
wip
panteliselef 57cb706
wip
panteliselef 631e5e5
wip
panteliselef a732df6
all pass
panteliselef 2d3c550
fix swr not passing params in infinite mode
panteliselef 1b4c7f0
improve flakiness
panteliselef 8d90888
Merge branch 'main' into elef/replace-swr-with-rq-infinite
panteliselef 6f27804
improve flakiness
panteliselef a9df03b
improve mocks
panteliselef 35f4e83
update CI to include RQ variants
panteliselef 0ffffa2
Merge branch 'main' into elef/replace-swr-with-rq-infinite
panteliselef 031083c
cleanup
panteliselef File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| --- | ||
| '@clerk/shared': patch | ||
| --- | ||
|
|
||
| Build internal variants of all paginated hooks that use React Query instead of SWR. |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.