摘要:
While it's powerful enough to have Machine.transition, it can get tedious constantly passing it a state and an event. It would be nice if we had a fun 阅读全文
摘要:
numerating the possible states of a function is a sound way to write a function, but it is imperative and could benefit from abstraction. We can do th 阅读全文
摘要:
There are several fundamental problems with trying to manage the state of a function through the use of booleans. The first is often referred to as "b 阅读全文
摘要:
Fire and Forgot: Fire an action and not wait it complete. Fire and Wait: FIre an action and wait for result. Fire and Forgot Fire and Wait: Using `mer 阅读全文
摘要:
When defining a selector, you can also pass other selectors into the signature of the Selector decorator to join other selectors with this state selec 阅读全文
摘要:
1. Selet piece of state from Store: This is useful when you just want to get state from the store directly. Of course that global state should contain 阅读全文
摘要:
This approach can also allow for the creation of well named helper functions that can be shared between handlers that require the same type of update. 阅读全文
摘要:
In general, it is not recommeded to use Namespace in Typescript, we should use ES6 module export import syntax. But there are still some good usecases 阅读全文