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

Remove global states and use react-query everywhere [TR-547] #3

Open
blu3r4y opened this issue Aug 20, 2024 · 0 comments
Open

Remove global states and use react-query everywhere [TR-547] #3

blu3r4y opened this issue Aug 20, 2024 · 0 comments
Labels
debt Technical debt

Comments

@blu3r4y
Copy link
Member

blu3r4y commented Aug 20, 2024

Currently, HoneyquestRoot + ProfileCard + ProfileInfo use manual data fetching and are tangled up badly with the global state machine. We should possibly remove the entire state machine because we don't need it, instead, we could pass down props like the profile and cache them just fine with react-query in the root component.

Introducing react-query with the current state machine did not work out well because the hooks are invalidated because of the ugly async state machine.

@blu3r4y blu3r4y added the debt Technical debt label Aug 20, 2024
@blu3r4y blu3r4y changed the title Remove global states and use react-query everywhere Remove global states and use react-query everywhere [TR-547] Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Technical debt
Projects
None yet
Development

No branches or pull requests

1 participant