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 useEffect hooks #80

Open
ajinkyaraj-23 opened this issue Jul 12, 2024 · 0 comments
Open

Refactor useEffect hooks #80

ajinkyaraj-23 opened this issue Jul 12, 2024 · 0 comments
Assignees
Labels
staking-dapp A simple website to allow users to stake in paris

Comments

@ajinkyaraj-23
Copy link
Collaborator

  1. remove useEffect and use usequery with enabled flag
  2. create a separate prop for all the queries
  3. use isLoading = query.isLoading || !query.data
@ajinkyaraj-23 ajinkyaraj-23 added the staking-dapp A simple website to allow users to stake in paris label Jul 12, 2024
@ajinkyaraj-23 ajinkyaraj-23 added this to the update-baker-list milestone Jul 12, 2024
@ajinkyaraj-23 ajinkyaraj-23 self-assigned this Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staking-dapp A simple website to allow users to stake in paris
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant