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
This relates to the notify integration into Tauri. With Tauri, developers can interact with notify using JavaScript. This means that they interface with events the way they are serialized using serde.
This makes working with events in JavaScript a bit awkward. You have to test for event kinds individually and take into account that it may be a string or object:
Keeping it as it is would be fine, too. But I thought that very few people would be using the serialization feature anyway.
What do you think? Am I overthinking this?
@passcod I saw your comment in #487. Would such a change be a problem for you?
The text was updated successfully, but these errors were encountered:
This relates to the
notify
integration intoTauri
. With Tauri, developers can interact with notify using JavaScript. This means that they interface with events the way they are serialized using serde.Currently a serialized event looks like this:
This makes working with events in JavaScript a bit awkward. You have to test for event kinds individually and take into account that it may be a string or object:
It would be more intuitive if we would flatten the event kind:
Using it in JavaScript would look like:
Keeping it as it is would be fine, too. But I thought that very few people would be using the serialization feature anyway.
What do you think? Am I overthinking this?
@passcod I saw your comment in #487. Would such a change be a problem for you?
The text was updated successfully, but these errors were encountered: