npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@rest-hooks/legacy

9.0.3

@ntucker

npmHomeRepoSnykSocket
Downloads:20988
$ npm install @rest-hooks/legacy
DailyWeeklyMonthlyYearly

πŸ›ŒπŸŽ£ Rest Hooks Legacy

CircleCI Coverage Status npm downloads bundle size npm version PRs Welcome

Rest Hooks legacy support.

πŸ“–Read The Docs

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