You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have install the post-robot package to my react project.
My project works as a web app which is embedded into a Web Client application and displayed within an IFrame. I know this web client uses post-robot library to handle communication events and I also know it is has an EventListening set on "loading".
Like any other packages, I have imported post robot in my main app component
import{postRobot}from'post-robot'
I tried to send the corresponding message the webclient is expecting :
constsendMessage=(message,success)=>{//parent window is the holding web client, message is "loading", success is falsepostRobot.send(window.parent,message,success)
however, when this function is called in the hook at runtime, an error occurs saying that React does not recognize '.send()' as a valid method.
I am puzzled. React seems to not recognize post-robot package, however, VS does not preventively throw any warning/errors (like it usually does) which would mean the package has been installed successfully. Am I doing this wrong or is post-robot not meant to be used on a React project ?
The text was updated successfully, but these errors were encountered:
I have install the post-robot package to my react project.
My project works as a web app which is embedded into a Web Client application and displayed within an IFrame. I know this web client uses post-robot library to handle communication events and I also know it is has an EventListening set on "loading".
Like any other packages, I have imported post robot in my main app component
I tried to send the corresponding message the webclient is expecting :
however, when this function is called in the hook at runtime, an error occurs saying that React does not recognize '.send()' as a valid method.
I am puzzled. React seems to not recognize post-robot package, however, VS does not preventively throw any warning/errors (like it usually does) which would mean the package has been installed successfully. Am I doing this wrong or is post-robot not meant to be used on a React project ?
The text was updated successfully, but these errors were encountered: