Skip to content
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

refactor(web): replace loaders with queries hooks #1452

Merged
merged 6 commits into from
Jul 10, 2024
Merged

Conversation

imobachgs
Copy link
Contributor

@imobachgs imobachgs commented Jul 10, 2024

  • Change the approach to replace route loaders with hooks.
  • Use the Suspense API to display the <Loading/> component while waiting for TanStack Query.

It is a refactoring, so I am not updating the changes file.

@dgdavid
Copy link
Contributor

dgdavid commented Jul 10, 2024

JFTR, related to changes introduced at #1439

Copy link
Contributor

@dgdavid dgdavid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@imobachgs imobachgs merged commit 2bf8c21 into master Jul 10, 2024
2 checks passed
@imobachgs imobachgs deleted the drop-loaders branch July 10, 2024 14:43
jreidinger added a commit that referenced this pull request Jul 11, 2024
Use TanStack to replace `ProductProvider`. It is related to #1439 and
#1452.
imobachgs added a commit that referenced this pull request Jul 17, 2024
Use TanStack to replace IssuesProvider. It is related to #1439 and
#1452.
teclator added a commit that referenced this pull request Jul 23, 2024
Adapted the UI using TanStack query instead of route loaders and
useEffect hooks.


---

Related to #1439,
#1452,
#1470, and
#1483
dgdavid added a commit that referenced this pull request Jul 23, 2024
Similar to #1439, #1452, and #1470, this set of changes aims to replace
the client/software with Tanstack queries.

Note that was not possible to fully drop the software client. It has to
wait until migration of
[`WithStatus`](https://github.com/openSUSE/agama/blob/bd2f35d0ead6d74931189f5619579f6c3ffa2770/web/src/client/mixins.js#L83)
and
[`WithProgress`](https://github.com/openSUSE/agama/blob/bd2f35d0ead6d74931189f5619579f6c3ffa2770/web/src/client/mixins.js#L147)
mixins too.
@imobachgs imobachgs mentioned this pull request Sep 20, 2024
imobachgs added a commit that referenced this pull request Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants