You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As of Redoodle 2.5.0, the old TypedAction.create() is now deprecated in favor of its near-equivalent defineAction(). This change was done for a few reasons:
Fewer closures required per action definition, which ultimately speeds up boot cost of action definitions considerably.
Better tree-shaking in modern webpack toolchains
For consumers, the following migration guide should be helpful:
All usages of TypedAction.define() and TypedAction.defineWithoutPayload() should be migrated to defineAction().
All usages of FooTypedAction.create(...) and FooTypedAction.createWithMeta(...) should be migrated to FooDefinedAction(...).
All usages of FooTypedAction.is(action) should be migrated to isType(action, FooDefinedAction.TYPE)
Any issues encountered during migration can be filed here or as a separate ticket.
The text was updated successfully, but these errors were encountered:
As of Redoodle 2.5.0, the old
TypedAction.create()
is now deprecated in favor of its near-equivalentdefineAction()
. This change was done for a few reasons:For consumers, the following migration guide should be helpful:
TypedAction.define()
andTypedAction.defineWithoutPayload()
should be migrated todefineAction()
.FooTypedAction.create(...)
andFooTypedAction.createWithMeta(...)
should be migrated toFooDefinedAction(...)
.FooTypedAction.is(action)
should be migrated toisType(action, FooDefinedAction.TYPE)
Any issues encountered during migration can be filed here or as a separate ticket.
The text was updated successfully, but these errors were encountered: