-
Notifications
You must be signed in to change notification settings - Fork 7
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
Fire state changed events #11
Conversation
f3b1086
to
f478cbb
Compare
@@ -17,5 +19,8 @@ export const startProvisioning = async () => { | |||
|
|||
const el = document.createElement("improv-wifi-provision-dialog"); | |||
el.device = device; | |||
el.stateUpdateCallback = (state) => { | |||
fireEvent(button, "state-changed", state); |
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.
Let's make detail an object so we can expand it while remaining backwards compatibility.
fireEvent(button, "state-changed", state); | |
fireEvent(button, "state-changed", { state }); |
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.
It is an object, stateUpdateCallback
receives an object.
Don't forget to update the README. |
8003b07
to
3f59119
Compare
No description provided.