Hi folks, we recently updated to react 18 and though most of our data fetching uses react Query we have one particular useEffect where we fetch data and create Object URL and dispose of said URL when the component unmount,
In our cypress test suite we stub the request with intercept and awaits the response, and in dev mode this is now executed twice due to the StrictMode..
is there a preferred way around this issue?
I can think of:
- not running with intercept towards dev mode
- using times to set 2 times
either option seems less than ideal for prod/ci/dev environments that behaved differently.
I realize we're doing the "wrong" thing here by stubbing our API in e2e tests but due to being ahead of our API ATM this is a temporary solution