Skip to content

Commit 25a3133

Browse files
antfuclaude
andcommitted
refactor: rename internal json-render state key to descriptive namespace
Use `devtoolskit:internal:json-render:<id>` instead of the cryptic `__jr:<id>` for shared state keys. Improves clarity and prevents accidental namespace collisions. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
1 parent 3293fe3 commit 25a3133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/node/context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export async function createDevToolsContext(
6060
// json-render factory
6161
let jrCounter = 0
6262
context.createJsonRenderer = (initialSpec: JsonRenderSpec): JsonRenderer => {
63-
const stateKey = `__jr:${jrCounter++}`
63+
const stateKey = `devtoolskit:internal:json-render:${jrCounter++}`
6464
const statePromise = rpcHost.sharedState.get(stateKey as any, {
6565
initialValue: initialSpec as any,
6666
})

0 commit comments

Comments
 (0)