Skip to content

UseResourceIndexState not reactive #426

@Oluwafemi21

Description

@Oluwafemi21

I have used the implementation from the docs with static data and it worked. Calling an endpoint with the initial data set to [], the page selection does not work.
const products = ref<Product[] | []>([])
const { selectedResources, allResourcesSelected, handleSelectionChange } = useIndexResourceState( products.value, { resourceIDResolver(resource) { return resource.productId }, } )

Metadata

Metadata

Assignees

No one assigned

    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