ChemPal Documentation - v0.0.13-beta.5
    Preparing search index...
    • React v19's use() hook can work with Context directly

      Benefits over useContext:

      • No need for separate error handling wrapper
      • Works with Suspense boundaries
      • Cleaner, more direct API
      • Future-proof for React's direction

      Returns undefined | AppContextProps

      export function useAppContext() {
      // No need for separate useContext - use() handles it
      // The context provider's error handling is sufficient
      return use(AppContext);
      }