Skip to content

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

Merged
imobachgs merged 6 commits intomasterfrom
drop-loaders
Jul 10, 2024
Merged

refactor(web): replace loaders with queries hooks#1452
imobachgs merged 6 commits intomasterfrom
drop-loaders

Conversation

@imobachgs
Copy link
Copy Markdown
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
Copy Markdown
Contributor

dgdavid commented Jul 10, 2024

JFTR, related to changes introduced at #1439

Copy link
Copy Markdown
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
@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