You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a case where I need to be able to grab the wagmi context and pass it down manually, because I'm using a third party lib that hijacks the context. In particular, I want to use wagmi hooks in a 3d scene rendered by react three fiber.
A limitation of react three fiber is that you need to re-pass the context down to children components of the 3d scene.
See: https://docs.pmnd.rs/react-three-fiber/advanced/gotchas#consuming-context-from-a-foreign-provider
However Context is not currently exported so its not possible to do this.
I can try doing: import { Context as WagmiContext } from "wagmi/dist/declarations/src/context";
However I get an error: "Module not found: Package path ./dist/declarations/src/context is not exported from package"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
this library is awesome!
I have a case where I need to be able to grab the wagmi context and pass it down manually, because I'm using a third party lib that hijacks the context. In particular, I want to use wagmi hooks in a 3d scene rendered by react three fiber.
A limitation of react three fiber is that you need to re-pass the context down to children components of the 3d scene.
See:
https://docs.pmnd.rs/react-three-fiber/advanced/gotchas#consuming-context-from-a-foreign-provider
So ideally I can do something like:
However
Context
is not currently exported so its not possible to do this.I can try doing:
import { Context as WagmiContext } from "wagmi/dist/declarations/src/context";
However I get an error: "Module not found: Package path ./dist/declarations/src/context is not exported from package"
Can this Context please be exported from the lib?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions