-
-
Notifications
You must be signed in to change notification settings - Fork 193
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
Complete catalog of client-side events #436
Comments
@jwr Hi Jan! Sorry to hear about the trouble upgrading. As a first step, just double checking that you're aware that the old wrapping behaviour can be easily retained by changing the The details are under Change 1/4 in the migration guide. Does this maybe help? |
No problem at all, the release notes were very clear, I just didn't read them carefully 🙂 Changing the |
No worries, fully understood 👍 Will definitely keep the option around, it's handy to have and I always use it myself (I prefer the wrapping, personally). |
Thank you, that is the kind of guidance I was looking for. In that case, the "complete catalog of events" isn't necessary, I'll just re-enable the wrapping using the |
You're very welcome! Please feel free to ping if you run into any other issues, I'm happy to help. Cheers :-) |
Well, one last semantic nitpick: |
I believe that's unintentional, so a bug - thanks for mentioning! |
I upgraded from Sente 1.17.0 to 1.19.0 and it took me a while to track down the breakage — which is entirely my fault, it's what I get for not reading the release notes carefully :-) What broke my app was that my data sent from the server was no longer a
:chsk/recv
event (#319). I pass my data straight to the:send-fn
, which no longer wraps it.I am facing a slight issue right now, because my client application handles
:chsk/state
and:chsk/handshake
, and then passes anything in a:chsk/recv
to a "dispatcher", a pub/sub-style system. Now that:chsk/recv
is no longer there, it needs to pass everything else into the dispatcher, which isn't great: for sente events, there will be no one to pick those up from the core.async channels. So, I'd rather not pass events that are unknown to my application code.There are several possible solutions that I can see:
:chsk/recv
?:send-fn
and I just don't know about it?I realize this is not a proper bug report, but it definitely is an "issue", albeit small. I wanted to ask for guidance before I work around this, perhaps this use case wasn't considered when making the changes. Closing as "WONTFIX" is fine, I'll just wrap the data in a custom event myself.
The text was updated successfully, but these errors were encountered: