{"id":"haedrix/react-devtools-core","name":"react-devtools-core","scope":"haedrix","platform":"roblox","description":"Mirrored from the Wally registry.","version":"17.3.7","latest":"17.3.7","versions":["17.3.7-pre.1","17.3.7-pre.2","17.3.7"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"jsdotlua/luau-polyfill":{"version":"^1.2.7","alias":"LuauPolyfill"},"haedrix/react-devtools-shared":{"version":"^17.3.7","alias":"ReactDevtoolsShared"},"haedrix/react-globals":{"version":"^17.3.7","alias":"ReactGlobals"},"haedrix/react-telemetry":{"version":"^17.3.7","alias":"ReactTelemetry"},"haedrix/safe-flags":{"version":"^17.3.7","alias":"SafeFlags"}},"integrity":"442293f90160b0f6c71df21696a46ac07e8b2c641fcbb05719fd5255c1f00962","likes":0,"downloads":0,"install":"forest install haedrix/react-devtools-core","url":"https://forest.dev/p/roblox/haedrix/react-devtools-core","files":"https://api.forest.dev/ai/package/roblox/haedrix/react-devtools-core/files","readme":"# `react-devtools-core`\r\n\r\nA React DevTools bridge implementation for React Lua. The implementation of this package deviates heavily from the upstream version.\r\n\r\n## API\r\n\r\nRequiring this package is similar to requiring `react-devtools`, but provides several configurable options. Unlike `react-devtools`, requiring `react-devtools-core` doesn't connect immediately but instead exports a function:\r\n\r\n```luau\r\nlocal ReactDevtoolsCore = require(Packages.ReactDevtoolsCore)\r\nlocal connectToDevtools = ReactDevtoolsCore.connectToDevtools\r\nconnectToDevTools(config)\r\n```\r\n\r\nRun `connectToDevTools()` in the same context as React to set up a connection to DevTools.\r\nBe sure to run this function before importing *any* React package -- e.g. `react`, `react-roblox`.\r\n\r\nThe `config` object may contain:\r\n\r\n- `host: string` (defaults to \"localhost\") - Websocket will connect to this host.\r\n- `port: number` (defaults to `8097`) - Websocket will connect to this port.\r\n- `useHttps: boolean` (defaults to `false`) - Websocket should use a secure protocol (wss).\r\n- `resolveRNStyle: (style: number) => ?Object` - Used by the React Native style plug-in.\r\n- `isAppActive: () => boolean` - If provided, DevTools will poll this method and wait until it returns true before connecting to React.\r\n","readmeTruncated":false}