| outline | deep |
|---|
Package:
devframe
Migrated from
DTK0008.
Function "
{name}" with type "{type}" cannot usesnapshot: true. Only "query" functions support this sugar; "static" functions have equivalent default behavior already.
snapshot: true is sugar for "query in dev, single baked snapshot in build". It is only meaningful on 'query' functions — 'static' already has equivalent default behavior, and 'action' / 'event' have nothing to snapshot.
Remove snapshot: true, or change the function type to 'query'.
packages/devframe/src/rpc/validation.ts