SwrContext
SwrContext is a React context used by the SWR data fetching library to propagate configuration options through a component tree. It allows a component subtree to share default behavior for data fetching and revalidation, and it can be overridden for a sub-tree by a configuration provider.
SwrContext works by storing a configuration object that SWR hooks consult to determine default values for
Common options associated with SwrContext include the fetcher function, dedupingInterval, revalidateOnFocus, revalidateOnReconnect, refreshInterval, shouldRetryOnError, errorRetryCount, and
SWRConfigProvider is the standard mechanism to set global defaults by supplying a value object to SwrContext
In practical use, wrapping a subtree with SWRConfigProvider establishes a shared configuration for nested components. Internally,