@trackunit/react-core-contexts-test 0.1.246 → 0.1.248

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 CHANGED
@@ -408,18 +408,6 @@ const flushPromisesInAct = (waitTimeInMS = 0) => {
408
408
  });
409
409
  });
410
410
  };
411
- /**
412
- * This is a temp hack to work around a Tanstack Router quirk.
413
- * This will wait for the render to finish before resolving the promise.
414
- *
415
- * @param rerender - The rerender function.
416
- */
417
- const waitForRenderTanstackRouterQuirk = async (rerender) => {
418
- return await react$1.act(async () => {
419
- rerender();
420
- await flushPromises();
421
- });
422
- };
423
411
 
424
412
  /**
425
413
  * This builder allows you to enable trackunit providers using the builder pattern, and then call 1 of either:
@@ -1166,4 +1154,3 @@ exports.trackunitProviders = trackunitProviders;
1166
1154
  exports.useDebugger = useDebugger;
1167
1155
  exports.useIsFirstRender = useIsFirstRender;
1168
1156
  exports.validateIrisApp = validateIrisApp;
1169
- exports.waitForRenderTanstackRouterQuirk = waitForRenderTanstackRouterQuirk;
package/index.esm.js CHANGED
@@ -406,18 +406,6 @@ const flushPromisesInAct = (waitTimeInMS = 0) => {
406
406
  });
407
407
  });
408
408
  };
409
- /**
410
- * This is a temp hack to work around a Tanstack Router quirk.
411
- * This will wait for the render to finish before resolving the promise.
412
- *
413
- * @param rerender - The rerender function.
414
- */
415
- const waitForRenderTanstackRouterQuirk = async (rerender) => {
416
- return await act(async () => {
417
- rerender();
418
- await flushPromises();
419
- });
420
- };
421
409
 
422
410
  /**
423
411
  * This builder allows you to enable trackunit providers using the builder pattern, and then call 1 of either:
@@ -1146,4 +1134,4 @@ const validateIrisApp = async (irisApp) => {
1146
1134
  return null;
1147
1135
  };
1148
1136
 
1149
- export { Debugger, TrackunitProvidersMockBuilder, doNothing, flushPromises, flushPromisesInAct, mockAnalyticsContext, mockAssetSortingContext, mockCurrentUserContext, mockEnvironmentContext, mockOemBrandingContext, mockToastContext, mockUserSubscriptionContext, queryFor, queryForHook, trackunitProviders, useDebugger, useIsFirstRender, validateIrisApp, waitForRenderTanstackRouterQuirk };
1137
+ export { Debugger, TrackunitProvidersMockBuilder, doNothing, flushPromises, flushPromisesInAct, mockAnalyticsContext, mockAssetSortingContext, mockCurrentUserContext, mockEnvironmentContext, mockOemBrandingContext, mockToastContext, mockUserSubscriptionContext, queryFor, queryForHook, trackunitProviders, useDebugger, useIsFirstRender, validateIrisApp };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-core-contexts-test",
3
- "version": "0.1.246",
3
+ "version": "0.1.248",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
@@ -14,7 +14,7 @@
14
14
  "@trackunit/react-core-hooks": "*",
15
15
  "lodash": "4.17.21",
16
16
  "graphql": "^15.8.0",
17
- "@tanstack/react-router": "1.46.8",
17
+ "@tanstack/react-router": "1.47.1",
18
18
  "@trackunit/shared-utils": "*"
19
19
  },
20
20
  "module": "./index.esm.js",
@@ -14,10 +14,3 @@ export declare const flushPromises: (waitTimeInMS?: number) => Promise<unknown>;
14
14
  * @returns {Promise<void>} - Returns a promise that resolves after the wait time.
15
15
  */
16
16
  export declare const flushPromisesInAct: (waitTimeInMS?: number) => Promise<unknown>;
17
- /**
18
- * This is a temp hack to work around a Tanstack Router quirk.
19
- * This will wait for the render to finish before resolving the promise.
20
- *
21
- * @param rerender - The rerender function.
22
- */
23
- export declare const waitForRenderTanstackRouterQuirk: (rerender: () => void) => Promise<void>;