Skip to content
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

Move sanity checking to client-server interaction #162

Merged
merged 6 commits into from
Nov 22, 2021

Conversation

leastbad
Copy link
Contributor

@leastbad leastbad commented Nov 11, 2021

Given the difficulty/impossibility of comparing the gem + npm package versions in Rails 7 and beyond, it was clear that significant parts of the sanity checking module needed to be reengineered to work as part of the library operation (as opposed to a once-off app startup check).

While this is very much intended to be merged with its SR sibling, it is important that the CR patch be merged first.

Since there is no concept of the server calling the client in CR, you can test this by changing the npm package version and trying to run a Reflex. You should see an error in the Console Inspector.

Note: in a late innovation suggested by @marcoroth, broadcast and broadcast_to now return recipient counts.

@leastbad leastbad added proposal ruby Pull requests that update Ruby code javascript Pull requests that update Javascript code labels Nov 11, 2021
@leastbad leastbad added this to the 5.0 milestone Nov 11, 2021
@leastbad leastbad merged commit 8da9d7c into stimulusreflex:master Nov 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code proposal ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant