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
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?
Hey I've created my component like this
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 errorrendering my Gallery Component without react-confirm-alert will work fine.
It seems since
react-confirm-alert
renders outside theroot
element it does not have access to the context providers. how can I fix this?Screen shot of my index.js![image](https://user-images.githubusercontent.com/37934074/180639370-3ca403e6-9fa1-43ef-93f1-35a0817eef5f.png)