Optional ReadonlybeforeHook that runs before the store sends its state to Rust. Can be used to modify the state before the sync.
Returning a nullish value will abort the operation.
Optional ReadonlybeforeHook that runs before the store attempts to update itself with data coming from Rust. Can be used to modify the state before the changes are applied.
Returning a nullish value will abort the operation.
Optional ReadonlyerrorCustom error handler.
Hooks to run custom logic at specific points in the store lifecycle.