This repository was 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.operationwhich 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 thesaveoperation for the best example of this. - Config:
config.operationPropsnow appear under apropskey 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.operationPropsis no longer required. When not provided this passes all of the props passed toEntityEditorHockthrough 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
ReactRouter4Configexport containingreact-routerversion 4 config, used on Ants example.- Closes #30
- Added
config.lifecycleMethods, where functions can be set to fire onEntityEditorHocklifecycle methods. Seeconfig/ReactRouter4Configfor 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.