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

Enforce the exhaustive deps for our custom hooks #70

Open
twschiller opened this issue Aug 10, 2021 · 4 comments
Open

Enforce the exhaustive deps for our custom hooks #70

twschiller opened this issue Aug 10, 2021 · 4 comments

Comments

@twschiller
Copy link
Collaborator

Context

  • We use some custom hooks that have deps like useEffect: useAsyncState and useAsyncEffect (which is a library)
  • We use an eslint plugin for enforcing exhaustive deps for useEffect and useCallback: https://reactjs.org/docs/hooks-rules.html
  • A missing dependency can cause subtle bugs

Implementation Sketch

@twschiller
Copy link
Collaborator Author

@grahamlangford
Copy link
Collaborator

@twschiller this could be a good issue to finally implement before the Page Editor refactor

@twschiller
Copy link
Collaborator Author

@twschiller this could be a good issue to finally implement before the Page Editor refactor

Your call on relative prioritization. Personally, I wouldn't block on it

@grahamlangford
Copy link
Collaborator

Wouldn't block. Just one I'll try to work in

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants