Closed dy closed 4 years ago
Without createAction there comes a simple problem of circular dependencies. One component may want to use value that is going to be defined by another component. Since live bindings are not available for hooks, that can be solved only by main components for now.
So, some components can be shallow-rendered with empty values, and then re-rendered with values re-defined by another components.
That may even cause that some components, using actions defined by another async/lazy/non-present components are rendered without these actions available.
Actions are removed.
Some points to reform useAction hook.