Skip to content

Commit

Permalink
tweak the comments for addDeps
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbski committed Feb 25, 2017
1 parent 45d9398 commit e3db875
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ const logicMiddleware = createLogicMiddleware(
deps // optional injected deps/config, supplied to logic
);

// dynamically add injected deps at runtime, these are made available
// to the logic hooks. The properties of the object `additionalDeps`
// will be added to the existing deps. For safety, this method does not
// allow existing deps to be overridden with a new value. It will throw
// an error if you try to override with a new value (setting to the same
// value/instance is fine).
// dynamically add injected deps at runtime after createStore has been
// called. These are made available to the logic hooks. The properties
// of the object `additionalDeps` will be added to the existing deps.
// For safety, this method does not allow existing deps to be overridden
// with a new value. It will throw an error if you try to override
// with a new value (setting to the same value/instance is fine).
logicMiddleware.addDeps(additionalDeps);

// dynamically add logic later at runtime, keeping logic state
Expand Down

0 comments on commit e3db875

Please sign in to comment.