You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor llms.txt to streamline devtools setup instructions, removing unnecessary code snippets and clarifying that certain configurations should only be executed in a development environment. Update testing guidelines by removing outdated tests and focusing on relevant subscription handling.
Copy file name to clipboardExpand all lines: llms.txt
+2-33Lines changed: 2 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -99,30 +99,15 @@ npm i -D @flexsurfer/reflex-devtools
99
99
Enable in your app entry point (`main.tsx`) before dispatching any events:
100
100
101
101
```ts
102
-
import { dispatch, enableTracing } from '@flexsurfer/reflex';
102
+
import { enableTracing } from '@flexsurfer/reflex';
103
103
import { enableDevtools } from '@flexsurfer/reflex-devtools';
104
104
105
105
enableTracing(); // required — turns on the trace pipeline that devtools reads
106
106
enableDevtools(); // opens the devtools connection
107
107
108
-
dispatch([EVENT_IDS.APP_INIT]);
109
108
```
110
109
111
-
`enableTracing()` activates internal trace collection for events, subscriptions, and renders. `enableDevtools()` hooks into those traces and exposes them to the devtools UI / MCP server. Both calls are cheap no-ops in production when tree-shaken behind a `process.env.NODE_ENV` guard.
112
-
113
-
If your app uses Vite with local source aliases (monorepo / examples), make sure reflex-devtools resolves the same Reflex instance:
0 commit comments