TanStackT
TanStack3y ago
3 replies
brilliant-orange

Mantine ModalManager + Tanstack Router

Problem - when Mantine ModalManager (https://mantine.dev/others/modals/) with Tanstack Router, the modals seem to be rendered outside the base router provider (despite being instantiated inside of Wrap).

Error - Uncaught TypeError: Cannot read properties of null (reading '__store')

Homework -
- Checked SO and Issues
- Tried using withinPortal={false}

Reproducible example -
- StackBlitz isn't able to install tanstack router but this is the code you would need to see the error - https://stackblitz.com/edit/stackblitz-starters-z7kejt?description=React%20%20%20TypeScript%20starter%20project&file=src%2FApp.tsx&title=React%20Starter

Any insight/ help here would be really appreciated. Thanks!
Centralized modals manager with option to handle state of multi-step modals
Modals manager | Mantine
StackBlitzSeth Brown
React + TypeScript starter project
React Starter - StackBlitz
Was this page helpful?