T
TanStack2y ago
cloudy-cyan

How to transpile react-query v5 for old browsers using vite

Hi guys, at work we need to support older versions of ios and safari 13. would like to use v5 instead of v4 In the documentation its mentioned that Depending on your environment, you might need to add polyfills. If you want to support older browsers, you need to transpile the library from node_modules yourselves. not sure how to do it and any help is appreciated
3 Replies
harsh-harlequin
harsh-harlequin2y ago
Have you tried if it just works?
harsh-harlequin
harsh-harlequin2y ago
GitHub
'@tanstack/react-query' does not work in Safari 14 · Issue #6371 · ...
Describe the bug Well, once you open your application that makes use of react-query, a JS error gets immediately thrown, no more other JS is executing on the page from that point, React is basicall...
cloudy-cyan
cloudy-cyanOP2y ago
I made a production build of few examples from the docs with build target as ios13 and it seems to work on ios simulator

Did you find this page helpful?