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

fix(flags): hooks #36

Merged
merged 1 commit into from
Nov 21, 2022
Merged

fix(flags): hooks #36

merged 1 commit into from
Nov 21, 2022

Conversation

MoSattler
Copy link
Contributor

@MoSattler MoSattler commented Nov 21, 2022

useFeatureFlag and useFeatureFlags were violating the rules of hooks by calling hooks conditionally. This PR fixes that.

See also #34 (comment)

@neilkakkar
Copy link
Contributor

Excellent, thank you!

@neilkakkar
Copy link
Contributor

.. Just run yarn prettier

`useFeatureFlag` and `useFeatureFlags` were violating the [rules of hooks](https://reactjs.org/docs/hooks-rules.html#explanation) by calling hooks conditionally. This commit fixes that.
@MoSattler
Copy link
Contributor Author

MoSattler commented Nov 21, 2022

@neilkakkar done!
Wasn't a prettier issue btw, but a lint issue.

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

Successfully merging this pull request may close these issues.

None yet

2 participants