Closed gatzjames closed 1 week ago
Why does this work?
Why does this work?
We rely on the result of the fetcher data.error
to be there and then show the upgrade modal.
When we create a new project in another org the fetcher runs for the new data but our use effect sees the previous state and shows the needs to upgrade modal.
This is a quirk of having to rely on the fetcher state and subscribing to that with a useEffect.
Highlights: