-
Notifications
You must be signed in to change notification settings - Fork 82
refactor(web): adopt TanStack Query for state management #1439
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
Merged
Changes from 37 commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
d5cf137
feat(web): add TanStack Query
imobachgs 1054332
feat(web): use React Query to fetch locales data
imobachgs f975f0f
refactor(web): move QueryClientProvider to app context
imobachgs 503e372
refactor(web): expose the client's websocket
imobachgs e263dbe
refactor(web): use queries to listen for l10n changes
imobachgs 7472ab8
refactor(web): adapt L10nPage to use queries
imobachgs 5d6232a
refactor(web): adapt L10nSection to use queries
imobachgs 2b83836
refactor(web): use ~/queries instead of relative paths
imobachgs eeeb61a
refactor(web): use functions to build queries
imobachgs 82c20df
fix(web): minimize l10n data retrieving
imobachgs 37a7e80
refactor(web): move l10n routes to ~/routes
dgdavid 227c42f
refactor(web): adapt InstallerOptions to use queries
imobachgs 179b65e
fix(web): add missing file
dgdavid 79ab607
refactor(web): drop the l10n context
imobachgs 4c02c9c
test(web): adapt test-utils to react-query
imobachgs 059ba54
test(web): adapt basic L10nPage test to react-query
imobachgs 8bbac2c
refactor(web): improve l10n selectors using RR loaders
dgdavid a8543eb
fix(web): listen for L10n changes from App
imobachgs bc6ff01
fix(web): fix locales update
imobachgs ccaa0f0
fix(web): revalidate loader on config change
dgdavid c0367be
fix(web): add a role to CardField
imobachgs 122bf20
test(web): write a new test for L10nPage
imobachgs 0fd96ff
test: drop the queryRender helper
imobachgs e018d5f
doc(web): document l10n queries
imobachgs 3cdcaf6
fix(web): make ESLint happy
imobachgs 58a27ff
refactor(web): remove unused methods from L10nClient
imobachgs f633c95
test(web): fix App tests
imobachgs 6f16921
refactor(web): drop unused L10nClient tests
imobachgs 4766a2d
feat(web): wrap plainRender on a QueryClientProvider
imobachgs b893146
test(web): fix L10nSectino tests
imobachgs 5236f86
test(web): remove uneeded mock from L10nSection test
imobachgs 82267a9
feat(web): add a hook for invalidating cached data
dgdavid 2ead884
fix(web): please ESLint
dgdavid b841272
test(web): add tests for l10n selectors
imobachgs c9ee944
fix(web): drop repeated invalidation
dgdavid dc28137
Merge branch 'master' into react-query
imobachgs b4e169a
doc(web): update the changes file
imobachgs cbbb727
doc(fix): fix changes entry
imobachgs 8838564
fix(service): fix manager tests
imobachgs 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.
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.