single-spa / single-spa-react

Single-spa lifecycles helper for React applications
https://single-spa.js.org/docs/ecosystem-react.html
MIT License
227 stars 63 forks source link

[ERROR] Using Parcel to import the same Angular/React component with different props at the same page #189

Closed kielvi closed 1 year ago

kielvi commented 1 year ago

Hi guys,

I'm having a problem with the development of my application with Single-spa. On the same page, I need to use Parcel to import an Angular component with certain properties. The problem is that I must use another Parcel with the same component but different props. For example:

<Parcel config={AngularTree} mountParcel={mountRootParcel} handleError={err => console.error(err)} wrapWith="pre" items={angularItems} isFocusSelected selectionMode="checkbox" />

<Parcel config={AngularTree} mountParcel={mountRootParcel} handleError={err => console.error(err)} wrapWith="pre" items={angularItems} isFocusSelected selectionMode="checkbox" />

MilanKovacic commented 1 year ago

What problems are you experiencing? You can load multiple instances of the same microfrontend on the same page.

MilanKovacic commented 1 year ago

Closing due to inactivity. Feel free to reopen the issue if the problem still persists.