Skip to content

Add a hook to get resource controller only #19

Description

@otakustay

Current the only way to get controller for a specific resource is useResource and useConstantResource, but their return values are tuples containing [value, controller].

In some cases, we only need resource controller to perform a expire or refresh of cache entry, such as to delete an item in a list from ListItem component.

We need useResourceController and useConstantResourceController hooks to satisfy these scenarios.

Activity

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

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