Skip to content

Adding new items/categories reverts selectedPack to first one #65

@jimmiejackson414-zz

Description

@jimmiejackson414-zz

I believe it has to do with the way the update method rewrites the cache in the create methods of the service files. Because it's reading/writing the entire PACKS_QUERY, this might be changing the selectedPackId variable which in turn triggers the selectedPack apollo query since it has a reactive variable.

Ideally, would figure out more efficient way to update cache. Short-term, may need to rework selectedPack apollo query in closet page to only fire after specific events are triggered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions