Socket
Book a DemoInstallSign in
Socket

@rest-hooks/legacy

Package Overview
Dependencies
Maintainers
2
Versions
101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rest-hooks/legacy

Legacy features for Rest Hooks

latest
Source
npmnpm
Version
9.0.3
Version published
Weekly downloads
531
-10.61%
Maintainers
2
Weekly downloads
 
Created
Source

🛌🎣 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);
  //...
}

Keywords

rest

FAQs

Package last updated on 24 Aug 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts