ApiSchemasFunctions
Function: useSchemas()
function useSchemas(
node,
spaceId,
schemas
): Promise<void>;Defined in: packages/core/src/schemas/index.ts:109
Makes sure a space knows these collections: defines the ones it has no definition for, and leaves the rest alone — so calling it every time a space opens is fine, and it never bumps a definition someone else owns. A space you cannot write in is skipped.
Parameters
| Parameter | Type |
|---|---|
node | P2PNode |
spaceId | string |
schemas | readonly DefineCollection[] |
Returns
Promise<void>