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
For now my workaround is using <MyReactContext.Consumer>{context => ...}</MyReactContext.Consumer> instead of the hook.
That's interesting, then I think this is an actual issue with the new Tailwind version, can you open an issue on this so we can reference it on a PR and discuss it there?
The new Tailwind component makes it quite impossible to use hooks or context w/ react email.
As I'm using react-i18next for i18n, I'm using the
useTranslation
hook. So I'm not having a dynamic use case either, just using available tools.Also, I'm using context to pass around some shared data without using prop drilling.
My workaround till now was having
Tailwind
as my root, so it won't interfere w/ context etc.However, this won't work with the rewrite, as it's now required to have the
<head>
as a direct descendant of<Tailwind>
.The hooks issue was also mentioned in #1021, and also what's the probable cause:
The text was updated successfully, but these errors were encountered: