Neverending Puppy Marathon

    @rest-hooks/legacy
    TypeScript icon, indicating that this package has built-in type declarations

    6.0.0 • Public • Published

    🛌🎣 Rest Hooks Legacy

    CircleCI Coverage Status npm downloads bundle size npm version PRs Welcome

    Rest Hooks legacy support.

    shapeToEndpoint

    import { shapeToEndpoint } from '@rest-hooks/legacy';
    
    function MyComponent() {
      const endpoint: any = useMemo(() => {
        return shapeToEndpoint(fetchShape);
        // we currently don't support shape changes
        // eslint-disable-next-line react-hooks/exhaustive-deps
      }, []);
      const mydata = useSuspense(endpoint, params);
      //...
    }

    Install

    npm i @rest-hooks/legacy

    DownloadsWeekly Downloads

    3,756

    Version

    6.0.0

    License

    Apache-2.0

    Unpacked Size

    829 kB

    Total Files

    203

    Last publish

    Collaborators

    • ntucker
    • ljharb