@webkrafters/react-observable-context 2.1.10 → 2.1.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -45,8 +45,8 @@ The context's `store` exposes **4** methods for interacting with the context's i
45
45
  * **resetState**: VoidFunction // resets the state to the Provider initial `value` prop.
46
46
 
47
47
  * **setState**: (changes: PartialState\<State\>) => void // sets only new/changed state slices.\
48
- $\textcolor{#080}{\textbf{\textit{Do\ this:}}}$ `setState({stateKey0: changes0[, ...]});`\
49
- $\textcolor{#800}{\textbf{\textit{Not\ this:}}}$ `setState({stateKey0: {...state.stateKey0, ...changes0}[, ...]});`
48
+ ***Do this:*** `setState({stateKey0: changes0[, ...]});`\
49
+ ***Not this:*** `setState({stateKey0: {...state.stateKey0, ...changes0}[, ...]});`
50
50
 
51
51
  * **subscribe**: (listener: (newValue: PartialState\<State\>, oldValue: PartialState\<State\>) => void) => ***UnsubscribeFunction***
52
52
 
package/package.json CHANGED
@@ -81,5 +81,5 @@
81
81
  "test:watch": "eslint --fix && jest --updateSnapshot --watchAll"
82
82
  },
83
83
  "types": "dist/index.d.ts",
84
- "version": "2.1.10"
84
+ "version": "2.1.11"
85
85
  }