#Getting error message when using useLoaderData();

9 messages · Page 1 of 1 (latest)

solar lily
#

please provide a comlete minimal example by forking one of the existing router examples on stackblitz

drifting nimbus
solar lily
#

and where does this error occur there?

drifting nimbus
#

Open console and click on the button

solar lily
#

ah

#
<ModalsProvider modals={{ demonstration: TestModal }}>
        <RouterProvider router={router} />
      </ModalsProvider>
#

you need to have the routerprovider wrapped around the modal

#

render the ModalsProvider in __root

drifting nimbus
#

Ah