GA-MO / react-confirm-alert

react component confirm dialog.
https://ga-mo.github.io/react-confirm-alert/demo/
MIT License
271 stars 105 forks source link

Can't access the contexts of the app #83

Closed SarkarKurdish closed 1 year ago

SarkarKurdish commented 2 years ago

Hey I've created my component like this

image

Inside the gallery component I've used other components such as (React Query, Mantine UI), but it seems my component which is being rendered by react-confirm-alert does not have any access to the context providers and throws error

image image

rendering my Gallery Component without react-confirm-alert will work fine.

It seems since react-confirm-alert renders outside the root element it does not have access to the context providers. how can I fix this?

Screen shot of my index.js image