Federation not working when using framework functions (useState) #199
Unanswered
laser-brain
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm sorry, this may be a plugin issue, here is some discussion(#173) on the issue, maybe this will help you |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've got a problem getting a react project with a simple button using local state to work.
When using the generated code, the following snippet is created in __federation_expose_Button.js
this leads to an error further down the line as react is undefined after this statement.
Changing the code to
fixes the issue.
These are my vite.config.ts files:
Host:
Remote:
Is this an issue with the plugin or is my configuration wrong? Thankful for any input on this
Beta Was this translation helpful? Give feedback.
All reactions