Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow hooks to be installed separately #692

Open
Glazy opened this issue Oct 10, 2022 · 0 comments
Open

Allow hooks to be installed separately #692

Glazy opened this issue Oct 10, 2022 · 0 comments

Comments

@Glazy
Copy link
Contributor

Glazy commented Oct 10, 2022

Feature suggestion

It would be nice to be able to install just the hooks, and their associated contexts/providers, without having to pull all of the data display and authentication components.

Expected functionality/enhancement

npm install @inrupt/solid-react-hooks // or similar

// index.js
import { useSession, useFile, useThing, useDataset } from '@inrupt/solid-react-hooks'

Actual functionality/enhancement

At the moment since it is not possible to install just the hooks so you have two options:

  1. Install this library as-is and pull all of the additional components.
  2. Copy the hooks/providers you want into your local project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant