docs
/
Is Croct right for you?
Explore Croct
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Experiment
  9. Immersion
  10. Reference
      1. Integration
      2. Manual installation
      3. Content rendering
      4. Query evaluation
      5. Data collection
      6. Event tracking
        1. Debugging
          1. Missing environment variable
          2. Missing Croct context
          3. Missing provider
          4. Missing slot content
          5. Missing evaluation result
          6. Client logic in SSR
    1. Reference
    2. SDKs
  1. Hydrogen
  2. Troubleshooting
  3. Common problems

Missing provider

Learn how to configure the Croct provider.

If you use the useCroct hook outside the context of a <CroctProvider> component, you will see the error below:

Error

useCroct() can only be used in the context of a <CroctProvider> component.

This means the SDK is not initialized on the client. To resolve it, wrap your app in the provider as described in the provider setup.

Previous
Missing Croct context
Next
Missing slot content
  • Product
  • Component CMS
  • AB testing
  • Personalization
  • Segmentation
  • User profiles
  • All features
  • Solutions
  • Customer acquisition
  • Lead generation
  • Geo-targeting
  • Revenue growth
  • Paid search traffic
  • Social ads traffic
  • Resources
  • Templates
  • Documentation
  • Changelog
  • Playbooks
  • Blog
  • Partners
  • Company
  • Service status
  • Contact support
  • Contact sales
  • Compare vendors
  • Privacy policy
  • Terms of service
  • Language
© Croct 2026