T
TanStack•3y ago
passive-yellow

React-query-devtools for react-native

I saw this, where do I start ?
No description
3 Replies
extended-salmon
extended-salmon•3y ago
Hi, I don't know too much about react-native. The devtools are a separate package in our monorepo that just render a react component with react-dom as some divs on the page. What would we need to make this work with react-native ? source of the devtools would be here: https://github.com/TanStack/query/tree/b82f05e3028718f03eb132a4dd92dc3d7623f7b5/packages/react-query-devtools/src
GitHub
query/packages/react-query-devtools/src at b82f05e3028718f03eb132a4...
🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. - query/packages/react-query-devtools/src at b82f05e3028718f03eb132a4dd92...
passive-yellow
passive-yellowOP•3y ago
Thx @TkDodo 🔮 Hm I see there is a already a compatibility with react-native (probably web) https://github.com/TanStack/query/blob/b82f05e3028718f03eb132a4dd92dc3d7623f7b5/packages/react-query-devtools/src/useSyncExternalStore.native.ts I'll try to run it on web first, and if it is compatible I'll check if we can put it in Flipper for Mobile.
GitHub
query/useSyncExternalStore.native.ts at b82f05e3028718f03eb132a4dd9...
🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. - query/useSyncExternalStore.native.ts at b82f05e3028718f03eb132a4dd92dc3...
extended-salmon
extended-salmon•3y ago
yeah it's web specific because it imports react-dom

Did you find this page helpful?