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
ReactDOM has the identifierPrefix option for createRoot/hydrateRoot which should be used when multiple roots are used on the same page to support the new useId hook. Having multiple roots happens to be particularly likely when using single-spa, so identifierPrefix should be supported and recommended to use with single-spa-react.
The text was updated successfully, but these errors were encountered:
How do you make this work with TS ? I am getting this with your method :
Argumentoftype'{ errorBoundary(err: Error, info: ErrorInfo, props: AppProps): any; React: typeof React; ReactDOMClient: any; renderType: "createRoot"; rootComponent: () => Element; }'isnotassignabletoparameteroftype 'SingleSpaReactOpts<AppProps>'. Object literal may only specify known properties, and 'ReactDOMClient' does not exist in type 'SingleSpaReactOpts<AppProps>'
ReactDOM has the
identifierPrefix
option forcreateRoot
/hydrateRoot
which should be used when multiple roots are used on the same page to support the newuseId
hook. Having multiple roots happens to be particularly likely when using single-spa, soidentifierPrefix
should be supported and recommended to use with single-spa-react.The text was updated successfully, but these errors were encountered: