commands/preview#

Functions#

preview()#

preview(view, command, minter?): View | Problem

Defined in: commands/preview.ts:22

The reducer without the schema check and the invariants: what a gesture shows before release. The command is applied as applyParsed applies it, every manifest it changes completed and put in canonical order and its block’s places fitted, so a preview never differs from what the command stores; a value only the schema or an invariant would refuse is shown, and a set that changes nothing gives the view back. The IDs of what it creates past the command’s ids are minted by minter, a fresh one by default; given the store’s copy (Store.minter), they are the IDs the store’s dispatch of the command stores.

Parameters#

view#

View

command#

Command

minter?#

IdMinter = ...

Returns#

View | Problem