Skip to content

4.0.0

Compare
Choose a tag to compare
@exah exah released this 28 Mar 16:38
· 13 commits to master since this release

πŸ“ Changes

  • ✨ Added useFetchData hooks and Suspense on server
  • ⚑️ Reduced bundle size from 4.5Kb β†’ 600B
  • 🏷️ Rewritten in TypeScript
  • βœ… Fully tested
  • ⬆️ Updated deps to latest version
  • πŸ’₯ Removed withData HOC and static getData prop API
  • 🚚 Renamed hydrateData β†’ hydrateInitialData
  • πŸ’₯ Replaced custom store with Map (internal)

✨ New hooks API:

function Foo() {
  const { isReady, isLoading, result, error } = useFetchData(resource, id)

  return <Bar {...result} />
}

3.0.1...4.0.0