Skip to content

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

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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