@trackunit/react-core-hooks 0.2.176 → 0.2.178
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.
- package/index.cjs.js +1 -1
- package/index.esm.js +1 -1
- package/package.json +1 -1
- package/src/user/CurrentUserProvider.d.ts +2 -2
package/index.cjs.js
CHANGED
|
@@ -606,7 +606,7 @@ const useCurrentUserSystemOfMeasurement = () => {
|
|
|
606
606
|
}, [context.systemOfMeasurement, context.setSystemOfMeasurement]);
|
|
607
607
|
};
|
|
608
608
|
|
|
609
|
-
const CurrentUserContext =
|
|
609
|
+
const CurrentUserContext = React.createContext(null);
|
|
610
610
|
/**
|
|
611
611
|
* This is a provider for the CurrentUserContext.
|
|
612
612
|
*/
|
package/index.esm.js
CHANGED
|
@@ -583,7 +583,7 @@ const useCurrentUserSystemOfMeasurement = () => {
|
|
|
583
583
|
}, [context.systemOfMeasurement, context.setSystemOfMeasurement]);
|
|
584
584
|
};
|
|
585
585
|
|
|
586
|
-
const CurrentUserContext =
|
|
586
|
+
const CurrentUserContext = createContext(null);
|
|
587
587
|
/**
|
|
588
588
|
* This is a provider for the CurrentUserContext.
|
|
589
589
|
*/
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ICurrentUserContext } from "@trackunit/react-core-contexts-api";
|
|
2
|
-
import
|
|
2
|
+
import { ReactNode } from "react";
|
|
3
3
|
interface Props {
|
|
4
4
|
value: ICurrentUserContext;
|
|
5
|
-
children?:
|
|
5
|
+
children?: ReactNode;
|
|
6
6
|
}
|
|
7
7
|
/**
|
|
8
8
|
* This is a provider for the CurrentUserContext.
|