Skip to content

filter without refetch? #1

Description

@JohnRDOrazio

Perhaps filtering can be applied on the fetched data, without refetching, to avoid unnecessary requests to the API? The data from the API is not changing when applying filters, so it shouldn't really be necessary to fetch the data again. Fetched data could be stored either in local storage, or even in a Javascript static class member, and filters could then be added / removed even after the data is fetched, without making another network request.

Seeing that this is written in Javascript, perhaps it could be useful to implement similar functionality in the https://github.com/Liturgical-Calendar/liturgy-components-js package, perhaps as a component of it's own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions