Skip to content

Rerfactor the inventory to avoid recalculating the DOM every second #83

@mfcochauxlaberge

Description

@mfcochauxlaberge

The amount of material is updated every second, which makes React recalculate the DOM too many times. The context should only provide the last update timestamp and the production rate. The final amount is then only calculated locally in the component that needs it.

Metadata

Metadata

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