action-cable-react icon indicating copy to clipboard operation
action-cable-react copied to clipboard

Fix bug

Open fedealconada opened this issue 8 years ago • 8 comments

Fix following issue.

fedealconada avatar May 01 '17 22:05 fedealconada

Thanks for the CR. Can you also make the change in the source CoffeeScript? The dist folder gets overwritten when I build for a new release (also it's hard to review the change in minified JS).

schneidmaster avatar May 02 '17 00:05 schneidmaster

@schneidmaster hehe, I thought there were no sources files, don't know why. I've just added the changes!

fedealconada avatar May 02 '17 00:05 fedealconada

Hmmm. Your change doesn't seem to resolve the linked bug for me -- I get the same logged error. (I'm also hesitant to deviate from the official Rails source for actioncable itself.)

For what it's worth, I'm also strongly considering deprecating this library in favor of react-actioncable-provider. I haven't had time to keep this library up since I no longer use it, and react-actioncable-provider also uses higher-order components rather than mixins which is preferable since React discourages the use of mixins and it's much more future-proof. So you might also try to see if that library does what you need instead of sinking a lot of time over here. :)

schneidmaster avatar May 02 '17 01:05 schneidmaster

@schneidmaster it works for me :/, but it's up to you... I found it a bit more practical yours than react-actioncable-provider

fedealconada avatar May 02 '17 01:05 fedealconada

Yeah, sorry, I thought about it for a while and I'm going to deprecate this library. For the reasons I said above -- I don't have time to properly maintain it and there's another solution that's more current with best practices. Feel free to fork if you want to continue using it though :)

schneidmaster avatar May 03 '17 01:05 schneidmaster

No problem. BTW, have you tried the other library? I cannot make it work…

fedealconada avatar May 03 '17 01:05 fedealconada

I tried a trivial case but haven't used it extensively -- I don't really have a need for this binding anymore in general. If you post your code with the new library I can see if I spot something.

schneidmaster avatar May 03 '17 01:05 schneidmaster

@schneidmaster here I have it with your library. And I'm trying to put the other one but I couldn't... where can I reach you (like a chat, maybe skype)?

fedealconada avatar May 03 '17 01:05 fedealconada