4.0.0
π Changes
- β¨ Added
useFetchData
hooks andSuspense
on server - β‘οΈ Reduced bundle size from 4.5Kb β 600B
- π·οΈ Rewritten in TypeScript
- β Fully tested
- β¬οΈ Updated deps to latest version
- π₯ Removed
withData
HOC and staticgetData
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} />
}