Skip to content
Discussion options

You must be logged in to vote

@SiTaggart , I think yes, it's mostly the context. I didn't notice any other issues.

So, if you create shared components, just components on their own, install them into an app (A plugin is technically an app as I'm fairly certain they each have a react root), and the app has its own theme provider installed directly from Paste, do those get the theme context and style correctly?

No, not really. But it seems that it only happens with a context created by one of dependencies. If I define context in the shared library myself (or in the plugin A and try to access it from within a shared component), it works.

And AFAIU now, it's more related to the way Webpack resolves modules in monorepo, …

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@SiTaggart
Comment options

@dmitriy-kudelko
Comment options

Answer selected by TheSisb
@TheSisb
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants