A quick note on `useTokensExportQuery` - I'm not sure react query will be the
right solution for handling file downloads.
In case you're having issues with it, might make sense to use axios directly.
--
I'd suggest adding a static csv file to src/mocks instead of trying to generate
it manually.
In the mock service worker you'll most likely want to use binary response type
https://mswjs.io/docs/recipes/binary-response-type
You'd also need to add header for the response to be handled correctly
2 matches
Mail list logo