Skip to content
This repository was archived by the owner on Nov 10, 2023. It is now read-only.
This repository was archived by the owner on Nov 10, 2023. It is now read-only.

Runtime error: currentSession reducer fails to update viewed safe #1346

@fernandomg

Description

@fernandomg

UPDATE_VIEWED_SAFE is not expecting the state to be undefined.

The initialization of the store is triggered in https://github.com/gnosis/safe-react/blob/development/src/index.tsx#L17

This causes, some times, a race condition where viewedSafe is not set, and UPDATE_VIEWED_SAFE is called.

The attempted solution in #1316 (comment) is not good.

I think we should revisit the store initialization flow. Is it ok to have those dispatches in src/index.tsx anyway?

Metadata

Metadata

Assignees

Labels

Bug 🐛Something isn't workingMajorNeeds to be fixed for immediate next public release.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions