@streamlayer/react-polyfills 0.1.47 → 0.1.49
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/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import * as legacy from './legacy';
|
|
3
3
|
export declare const useStore: typeof legacy.useStore;
|
|
4
|
-
export declare const useTransition: typeof
|
|
4
|
+
export declare const useTransition: typeof React.useTransition;
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import * as legacy from './legacy';
|
|
3
3
|
export const useStore = legacy.useStore;
|
|
4
4
|
const legacyUseTransition = () => {
|
|
@@ -9,4 +9,4 @@ const legacyUseTransition = () => {
|
|
|
9
9
|
},
|
|
10
10
|
];
|
|
11
11
|
};
|
|
12
|
-
export const useTransition =
|
|
12
|
+
export const useTransition = React.useTransition || legacyUseTransition;
|