autosuspense 0.1.5 → 0.1.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "autosuspense",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
4
4
  "description": "Automatic suspense wiring block for React.",
5
5
  "license": "ISC",
6
6
  "type": "commonjs",
@@ -32,10 +32,10 @@
32
32
  "react-dom": ">=16.8"
33
33
  },
34
34
  "devDependencies": {
35
- "react": "^16.8.0",
36
- "react-dom": "^16.8.0",
37
35
  "@types/react": "^16.14.68",
38
36
  "@types/react-dom": "^16.9.25",
37
+ "react": "^16.8.0",
38
+ "react-dom": "^16.8.0",
39
39
  "typescript": "^5.3.0"
40
40
  }
41
41
  }
@@ -1,8 +1,8 @@
1
- import { useContext, type ReactElement } from "react";
2
- import { FallbackContext } from "../types/FallbackRegistry";
1
+ import { useContext } from "react";
2
+ import { FallbackContext, FallbackDescriptor } from "../types/FallbackRegistry";
3
3
  import { useCompatId } from "./useCompatId";
4
4
 
5
- export function useSuspenseFallback(element: ReactElement): void {
5
+ export function useSuspenseFallback(element: FallbackDescriptor): void {
6
6
  const registry = useContext(FallbackContext);
7
7
  const id = useCompatId();
8
8