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

Swap to Tanstack Query #70

Open
3 tasks
lishaduck opened this issue Oct 19, 2024 · 1 comment
Open
3 tasks

Swap to Tanstack Query #70

lishaduck opened this issue Oct 19, 2024 · 1 comment
Assignees
Labels
dependencies Pull requests that update a dependency file refactor Relates to an internal change

Comments

@lishaduck
Copy link
Member

lishaduck commented Oct 19, 2024

Explanation

Reduce some code here and there by not using our weird, hacky usePromise hook and replacing it with Tanstack Query.

Steps

  • deno add npm:react-query (remove caret) Use esm.sh + * prefix b/c it's for react
  • See if it works in preact
  • Replace the weird usePromise hook with fancy, suspenseful React Query code
@lishaduck lishaduck self-assigned this Oct 20, 2024
@lishaduck lishaduck added dependencies Pull requests that update a dependency file chore Relates to something miscellaneous and/or tedious refactor Relates to an internal change and removed dependencies Pull requests that update a dependency file chore Relates to something miscellaneous and/or tedious labels Oct 20, 2024
@lishaduck
Copy link
Member Author

Alternatively, see if @effect/rpc would be a better (or complementary) option.

@lishaduck lishaduck changed the title Swap to React Query Swap to Tanstack Query Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file refactor Relates to an internal change
Projects
None yet
Development

No branches or pull requests

1 participant