Skip to content

[Bug]: Investigate Derived Stores #119

@okdv

Description

@okdv

Bug Report

Describe the bug
Currently there are two monolithic stores that spread across all maps a user has interacted with. selectedfeatures and legenditems.
When legend store is updated, currently it must loop through all selectedfeatures across all maps to apply the update
this can create poor website performance an unexpected issues in low resource environements

To Reproduce
see legendStore.subscribed subscription on initMapAndLayers

Proposed Solution
Probably derived stores to branch off the 'active' stores for the 'active' maps and can run subscriptions on both, with the lighter derived stores being used most of the time

Screenshots

Environment (please complete the following information):

Additional context

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions