This repository has been archived by the owner on Apr 15, 2020. It is now read-only.
InferiorFox
Breaking changes
- Config: operations on tasks are now just strings on
config.tasks.xxx.operation
which refer to an operation, whereas they used to be a double barrel function onconfig.tasks.xxx.operate
. The functions in the tasks accomplished nothing that can't be better achieved by operations calling other operations. See thesave
operation for the best example of this. - Config:
config.operationProps
now appear under aprops
key in the object passed as the first argument of the first function of each operation. Previously these were top-level within the object. - Config:
config.operationProps
is no longer required. When not provided this passes all of the props passed toEntityEditorHock
through to the operations. - BaseConfig: write actions no longer set dirty state. This is now left entirely to the user, and works better this way.
Additions
- Added
ReactRouter4Config
export containingreact-router
version 4 config, used on Ants example.- Closes #30
- Added
config.lifecycleMethods
, where functions can be set to fire onEntityEditorHock
lifecycle methods. Seeconfig/ReactRouter4Config
for an example. I don't anticipate much need to use this.
Examples updates
- Cleaned up examples, restructured components within them to be less magic, and to separate the parts of the examples that show how things are done versus those that are merely there to make the examples work.
- Ants example fully works with router navigation protection.