React problem: I want to use a feature flag to call one of two React hooks -...
React problem: I want to use a feature flag to call one of two React hooks - an old one, or a new one that will soon replace it.
But, React hooks shouldn't be called conditionally.
Options:
1. Ignore the ESLint rule and call the hooks conditionally.
2. Call both hooks, even though I only want to call one.
I don't like either option.