text-module
and switch-module
are to simple to be useful, you can implement them yourself in your application.
fromCommand
is confusing, just:
- define an event via
domain.event
- return event in
domain.command
- use
fromEvent
indomain.effect
remesh/modules/tree
can be used to management tree structure data.
- The
options.name
inasync-module
now should end withAsyncModule
, eg:UserAsyncModule
- The
options.name
inlist-module
now should end withListModule
, eg:UserListModule
- The
options.name
intree-module
now should end withTreeModule
, eg:MyTreeModule
When defining you own remesh-module
, you should follow the naming convention. DomainConceptName<'MyModule'>
will be helped to generate the type
of remesh-module
.
Now it's not allowed to emit event outside of domain
, you should use domain.command
to emit event indirectly, so it can be verified by domain.command
.