react-native-devtools-sync
Version:
A tool for syncing React Query state to an external Dev Tools
20 lines • 760 B
JavaScript
export let useSyncQueriesExternal;
export let setExpoCommandImplementations;
// @ts-ignore process.env.NODE_ENV is defined by metro transform plugins
if (process.env.NODE_ENV !== "production") {
useSyncQueriesExternal =
require("./react-query-external-sync/useSyncQueriesExternal").useSyncQueriesExternal;
setExpoCommandImplementations = require('./react-query-external-sync/executeExpoCommand').setExpoCommandImplementations;
}
else {
// In production, this becomes a no-op function
useSyncQueriesExternal = () => ({
isConnected: false,
connect: () => { },
disconnect: () => { },
socket: null,
users: [],
});
setExpoCommandImplementations = () => { };
}
//# sourceMappingURL=index.js.map