MCPcopy
hub / github.com/getsentry/sentry / rerender

Function rerender

tests/js/sentry-test/reactTestingLibrary.tsx:342–355  ·  view source on GitHub ↗
(newUi: React.ReactElement)

Source from the content-addressed store, hash-verified

340 );
341
342 const rerender = (newUi: React.ReactElement) => {
343 const newRouter = makeRouter({
344 children: <AllTheProviders>{newUi}</AllTheProviders>,
345 history,
346 config,
347 outletContext,
348 });
349
350 renderResult.rerender(
351 <RouterProvider router={newRouter} future={{v7_startTransition: true}} />
352 );
353 // Force the router to update children
354 rtl.act(() => newRouter.revalidate());
355 };
356
357 const testRouter = new TestRouter(memoryRouter);
358

Callers 1

Calls 1

makeRouterFunction · 0.85

Tested by

no test coverage detected