Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

InferiorFox

Compare
Choose a tag to compare
@dxinteractive dxinteractive released this 30 Apr 14:36
· 48 commits to master since this release

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 on config.tasks.xxx.operate. The functions in the tasks accomplished nothing that can't be better achieved by operations calling other operations. See the save operation for the best example of this.
  • Config: config.operationProps now appear under a props 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 to EntityEditorHock 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 containing react-router version 4 config, used on Ants example.
  • Added config.lifecycleMethods, where functions can be set to fire on EntityEditorHock lifecycle methods. See config/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.