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

Show version mismatch warning toasts when CableReady versions mismatch #651

Merged
merged 1 commit into from
Mar 27, 2023

Conversation

marcoroth
Copy link
Member

@marcoroth marcoroth commented Mar 27, 2023

Type of PR

Enhancement

Description

Following up on #641 and #650, this pull request also shows version mismatch toasts when the CableReady versions don't match. Perviously it would just show toast messages when the StimulusReflex versions didn't match.

Why should this be added

Previously this just showed a console error message when the user enabled the client-side debug option to true. Now this message is always printed, regular of the option. But additionally it now shows a version mismatch toast message when the debug option is set to true:
Screenshot 2023-03-27 at 21 10 36

This helps to know what's up and why a reflex action might not have worked. If you didn't have the console open you wouldn't know why the reflex action didn't work.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing

@netlify
Copy link

netlify bot commented Mar 27, 2023

Deploy Preview for stimulusreflex ready!

Name Link
🔨 Latest commit aba5656
🔍 Latest deploy log https://app.netlify.com/sites/stimulusreflex/deploys/6421ea9d1e5dc50008ba8bd9
😎 Deploy Preview https://deploy-preview-651--stimulusreflex.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@marcoroth marcoroth merged commit 542b395 into main Mar 27, 2023
@marcoroth marcoroth deleted the cable-ready-version-mismatches branch March 27, 2023 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant