@trackunit/react-core-contexts-test 1.12.27 → 1.12.28
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,8 +1,4 @@
|
|
|
1
1
|
import { ReactNode } from "react";
|
|
2
|
-
export declare const RerenderContext: import("react").Context<{
|
|
3
|
-
rerenderCounter: number;
|
|
4
|
-
setRerenderCounter: (value: number) => void;
|
|
5
|
-
}>;
|
|
6
2
|
/**
|
|
7
3
|
* This provider is used to force re-renders in the test environment, since tanstack router does not support re-render.
|
|
8
4
|
*/
|
|
@@ -10,10 +10,6 @@ export type MemoryRouterProps<TRouterTree extends AnyRoute = RegisteredRouter["r
|
|
|
10
10
|
}>;
|
|
11
11
|
context?: Record<string, unknown>;
|
|
12
12
|
};
|
|
13
|
-
/**
|
|
14
|
-
* This component is used to wrap the children of the RouterContainer to add a test root container
|
|
15
|
-
*/
|
|
16
|
-
export declare const RootRouteDebugger: () => import("react/jsx-runtime").JSX.Element;
|
|
17
13
|
/**
|
|
18
14
|
* This component is used to wrap the children of the RouterContainer to add a test root container
|
|
19
15
|
*/
|
|
@@ -21,15 +17,6 @@ export interface TestRenderChildrenProps {
|
|
|
21
17
|
addTestRootContainer: boolean;
|
|
22
18
|
children: ReactNode;
|
|
23
19
|
}
|
|
24
|
-
/**
|
|
25
|
-
* This component is used to wrap the children of the RouterContainer to add a test root container.
|
|
26
|
-
*
|
|
27
|
-
* @param props - The component props.
|
|
28
|
-
* @param props.addTestRootContainer - Boolean to add test root container.
|
|
29
|
-
* @param props.children - Children to be wrapped.
|
|
30
|
-
* @returns {ReactNode} Children component wrapped in a test root container.
|
|
31
|
-
*/
|
|
32
|
-
export declare const TestRenderChildren: ({ addTestRootContainer, children }: TestRenderChildrenProps) => ReactNode;
|
|
33
20
|
export interface RouterContainerProps<TRoute extends AnyRoute = AnyRoute> {
|
|
34
21
|
addTestRootContainer: boolean;
|
|
35
22
|
rootRoute?: TRoute | null;
|