Skip to content

Commit 2d5befc

Browse files
authored
refactor: use descriptive namespace for json-render state key (#246)
1 parent 3293fe3 commit 2d5befc

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)