docs
/
Take a product tour
Sign in
  1. Introduction
  2. Home
  3. Overview
  4. Getting started
  5. Explanation
  6. Component
  7. Slot
  8. Immersion
  9. Reference
      1. Installation
      2. Content rendering
      3. Query evaluation
      4. Data collection
      5. Event tracking
        1. Debugging
          1. Missing provider
          2. Client logic in SSR
          3. Missing slot content
          4. Missing evaluation result
    1. Reference
    2. SDK
  1. React
  2. Troubleshooting
  3. Common problems

Missing provider

Learn how to configure the Croct provider.

If you try to 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 indicates that the SDK is not properly initialized. To resolve this issue, follow the steps for initializing the SDK.

Previous
Debugging
Next
Client logic in SSR
  • Resources
  • Documentation
  • Blog
  • Newsletter
  • Support
  • Slack community
  • API status
  • Company
  • Careers
  • Contact us
  • Legal
  • Privacy policy
  • Terms of service
  • Language
© Croct 2025