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

handle operations that have string-defined selector argument #509

Merged
merged 3 commits into from
May 27, 2021

Conversation

leastbad
Copy link
Contributor

@leastbad leastbad commented May 23, 2021

Type of PR (feature, enhancement, bug fix, etc.)

Bug fix

Description

Currently, if you try to do this in a Reflex method:

cable_ready.append("#stonknotes", html: html)

... you get a no implicit conversion of Symbol into Integer exception because CableReadyChannels is hard-coded to assume that the first argument is a Hash. This is not guaranteed to be the case since we merged stimulusreflex/cable_ready#107 (see item 3 for context).

Why should this be added

Failures are bad.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@leastbad leastbad added bug Something isn't working ruby Pull requests that update Ruby code cableready labels May 23, 2021
@leastbad leastbad added this to the 3.5 milestone May 23, 2021
@leastbad leastbad requested a review from a team May 23, 2021 01:51
Copy link
Member

@marcoroth marcoroth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, nice catch!

I can confirm that it's broken in 3.5.0.pre0 and that this PR fixes that issue.

@leastbad leastbad merged commit 909b270 into stimulusreflex:master May 27, 2021
@leastbad leastbad deleted the fix_crc branch August 16, 2021 03:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cableready ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants