Skip to content

Module is remove, when clicking react router links, inside the same module #79

Open
@alfnielsen

Description

@alfnielsen

Hey,
Maybe there is something I dont know of the inner workings,
But when I have a ReactRouter NavLink that point to another page,
within the same module, a '@@Internal/ModuleManager/ModuleRemoved'
is still dispactehed, which remove the data for the module,
and break our site.
When I hard reload the browser the module is again loadet correct.

So it seems that react router links dont really works inside a module ?

It seems like a bug?

Is it posible to turn of 'ModuleRemoved' ?

Redux history:

[
{
  type: '@@router/LOCATION_CHANGE',
  payload: {
    location: {
      pathname: '/contracts/activities',
      search: '',
      hash: '',
      key: '0yjca4'
    },
    action: 'PUSH',
    isFirstRendering: false
  }
},
{
  type: '@@Internal/ModuleManager/ModuleRemoved',
  payload: 'contract'
}
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions