-
-
Notifications
You must be signed in to change notification settings - Fork 634
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(provider): make react compiler happy #2771
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. |
Size Change: +176 B (+0.19%) Total Size: 91.1 kB
ℹ️ View Unchanged
|
Preview in LiveCodesLatest commit: 3185b51
See documentations for usage instructions. |
/ecosystem-ci run |
Ecosystem CI Output
|
@dai-shi could this be a solution too ? export const Provider = ({
children,
store,
}: {
children?: ReactNode
store?: Store
}): FunctionComponentElement<{ value: Store | undefined }> => {
const [value] = useState(() => store || createStore())
return createElement(StoreContext.Provider, { value }, children)
} The |
Unfortunately not, because |
commit: |
If we were to follow eslint-react-compiler, should this be a solution?