{"id":"th4tunkn0wndude/react-devtools-core","name":"react-devtools-core","scope":"th4tunkn0wndude","platform":"roblox","description":"Mirrored from the Wally registry.","version":"17.3.11-pre.4","latest":"17.3.11-pre.4","versions":["17.3.11-pre.1","17.3.11-pre.2","17.3.11-pre.3","17.3.11-pre.4"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{"jsdotlua/luau-polyfill":{"version":"^1.2.7","alias":"LuauPolyfill"},"th4tunkn0wndude/react-devtools-shared":{"version":"^17.3.11-pre.4","alias":"ReactDevtoolsShared"},"th4tunkn0wndude/react-globals":{"version":"^17.3.11-pre.4","alias":"ReactGlobals"},"th4tunkn0wndude/react-telemetry":{"version":"^17.3.11-pre.4","alias":"ReactTelemetry"},"th4tunkn0wndude/safe-flags":{"version":"^17.3.11-pre.4","alias":"SafeFlags"}},"integrity":"58b6795dd19a58a708f8106ebc48773b209aca848846cb0b5005e031e088d9d9","likes":0,"downloads":0,"install":"forest install th4tunkn0wndude/react-devtools-core","url":"https://forest.dev/p/roblox/th4tunkn0wndude/react-devtools-core","files":"https://api.forest.dev/ai/package/roblox/th4tunkn0wndude/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}