File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @alevnyacow/shared-react-variables" ,
3- "version" : " 2.0.3 " ,
3+ "version" : " 2.0.4 " ,
44 "description" : " Easy and comfortable React state manager" ,
55 "main" : " transpiled/index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ type ReactVariableRewriteHook<T> = () => (
1111
1212/**
1313 * Generates a tuple of two hooks: first hook is a React variable generator,
14- * second hook can be used to rewrite a whole variable (you don't need this most likely).
14+ * second hook can be used to rewrite a whole variable (you don't need this, most likely).
1515 *
16- * @param initialState Initial state of shared React variable.
16+ * @param initialState Initial state of a shared React variable.
1717 */
1818function createUseSharedVariable < T extends object > ( initialState : T ) {
1919 const variableIdentifier = v4 ( ) ;
@@ -25,7 +25,7 @@ function createUseSharedVariable<T extends object>(initialState: T) {
2525 /**
2626 * React hook returning shared React variable.
2727 *
28- * @param rerenderOnChange Flag can be used to prevent a rerender on React variable changes, when set to true .
28+ * @param rerenderOnChange Flag can be used to prevent a rerender on React variable changes, when set to false .
2929 */
3030 const useSharedVariable : ReactVariableHook < T > = (
3131 rerenderOnChange = true
Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "dependencies" : {
6- "@alevnyacow/shared-react-variables" : " file:../../alevnyacow-shared-react-variables-2.0.3 .tgz" ,
6+ "@alevnyacow/shared-react-variables" : " file:../../alevnyacow-shared-react-variables-2.0.4 .tgz" ,
77 "@testing-library/jest-dom" : " ^5.16.2" ,
88 "@testing-library/react" : " ^12.1.4" ,
99 "@testing-library/user-event" : " ^13.5.0" ,
You can’t perform that action at this time.
0 commit comments