Skip to content

Please wrap your component with IntercomProvider. #13

@hatched-esther

Description

@hatched-esther

I have some problems trying to get the Intercom messenger to show up. I'm trying to migrate from using the react-intercom library. I currently have a structure like this:

   <Context.Provider1>
     { condition ? (
       <IntercomProvider appId={*****} /> 
         <img src="" onClick={()=> show()} /> // this is using the useIntercom hook 
          <Components /> 
       </IntercomProvider>
      ) : (<Components/>)}
   <Context.Provider1 />

Trying to do this triggers the error: Please wrap your component with IntercomProvider. Any help with this particular case is appreciated. Also... please let me know if this is not an acceptable place to ask for help, happy to move this anywhere you deem appropriate. Thank you for your library!

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions