#Getting error message when using useLoaderData();
9 messages · Page 1 of 1 (latest)
https://stackblitz.com/edit/vitejs-vite-2h6fhdbm
@solar lily
and where does this error occur there?
Open console and click on the button
ah
<ModalsProvider modals={{ demonstration: TestModal }}>
<RouterProvider router={router} />
</ModalsProvider>
you need to have the routerprovider wrapped around the modal
render the ModalsProvider in __root
Ah