@gorgonjs/gorgon

A simple caching library for async functions

react

frameworkreact
243 linesSource

React integration for @gorgonjs/gorgon via @gorgonjs/react: useGorgon hook with data/error/loading/refetch state, clearGorgon helper for cache invalidation from components, cache key management tied to component lifecycle, and DIY hook patterns. Use when building React components that need cached async data fetching.