I have a React application that has a few stores that should be injected into the components. I successfully injected the store with: (index.js)
<Provider vehicleMakesIndexStore={new VehicleMakesIndexStore()}
<App />
</Provider>,
And successfully accessed the store in component with:
const VehicleMakesFormComponent = inject("vehicleMakesIndexStore")(
observer((props) => {
const store = props.vehicleMakesIndexStore;
...
However, when accessing the store I have the same instance every time and I would like to have a new one every time.