solid-ui-react icon indicating copy to clipboard operation
solid-ui-react copied to clipboard

Allow hooks to be installed separately

Open Glazy opened this issue 3 years ago • 1 comments

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.

Glazy avatar Oct 10 '22 18:10 Glazy

Hi @Glazy , I'm sorry this issue was never replied to. We are now deprecating the React SDK, so unfortunately we will not be addressing the open issues.

NSeydoux avatar Dec 16 '24 22:12 NSeydoux