DF0013: Shared State Not Found
Message
Shared state of "
{key}" is not found, please provide an initial value for the first time
Cause
RpcSharedStateHost.get() was called for a key that has no stored state yet, and no initialValue was passed.
Fix
Pass initialValue on the first call: ctx.rpc.sharedState.get(key, { initialValue: ... }).
Source
packages/devframe/src/node/rpc-shared-state.ts—RpcSharedStateHost.get()throwsDF0013when neither an existing entry nor aninitialValueis provided for a key.