-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add loadEventCallback #90
base: main
Are you sure you want to change the base?
Add loadEventCallback #90
Conversation
The snippet allows for a callback on certain methods. Since the React SDK handles _ps("load") under the hood we need allow users to specify an error handling callback for this method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the indents? They look abnormal.
@jasonabrown and do we want to add this prop to the documentation? |
@cdhcs1516 thank you for the quick review! Curious your thoughts on naming convention for this prop. We could alternatively call it |
|
@cdhcs1516 the underlying JS SDK does not have a trigger event for |
this name leaves room for a JS SDK supported onLoad event in the future
The JS SDK allows for a callback on certain methods. Since the React SDK handles
_ps("load")
under the hood we need allow users to specify an error handling callback for this method.Verified locally.