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

Queries should be run through a hook and cached #19

Closed
estradanic opened this issue Aug 3, 2022 · 3 comments
Closed

Queries should be run through a hook and cached #19

estradanic opened this issue Aug 3, 2022 · 3 comments
Assignees
Labels
story New feature or request < 2 days
Milestone

Comments

@estradanic
Copy link
Owner

estradanic commented Aug 3, 2022

Create a ParseQueryContext and a useParseQuery hook.

Run all queries through the hook.

Cache query results (in idbkeyval probably) and always return from the cache if it's available.

Make it possible to invalidate certain query caches to allow for fresh data to be fetched.

Maybe use 'react-query'???

@estradanic estradanic self-assigned this Aug 3, 2022
@estradanic estradanic added the story New feature or request label Aug 3, 2022
@estradanic estradanic changed the title Queries should be run through a hook and cached 1 - Queries should be run through a hook and cached Aug 3, 2022
@estradanic estradanic added this to the MVP milestone Aug 4, 2022
@estradanic estradanic changed the title 1 - Queries should be run through a hook and cached Queries should be run through a hook and cached Aug 4, 2022
estradanic pushed a commit that referenced this issue Aug 25, 2022
@estradanic
Copy link
Owner Author

Used React query

@estradanic
Copy link
Owner Author

Gets are done. Just need Posts

@estradanic
Copy link
Owner Author

not going to bother with mutations actually.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
story New feature or request < 2 days
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant