Libraries that export a Modal component are usually using a Portal under the hood. In this case, you do need that <Modal> inside of the <ImportantValueProvider>. There's no way around it.
Your Provider should be at the top of your application, unless you have multiple instances of the same kind of Provider, which is sort of an anti-pattern unless you have a niche use case that fits it. In short, put your Provider at the top-level of your app and you should be good to go.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Libraries that export a
Modal
component are usually using aPortal
under the hood. In this case, you do need that<Modal>
inside of the<ImportantValueProvider>
. There's no way around it.Your
Provider
should be at the top of your application, unless you have multiple instances of the same kind ofProvider
, which is sort of an anti-pattern unless you have a niche use case that fits it. In short, put yourProvider
at the top-level of your app and you should be good to go.