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

Cannot read property 'received' of undefined

Open viktortsarevskiy opened this issue 9 years ago • 4 comments

Something wrong happen when I try to use this module: subscriptions.js?a0eb:1 Uncaught TypeError: Cannot read property 'received' of undefined

I use react v15.3.1

viktortsarevskiy avatar Sep 27 '16 12:09 viktortsarevskiy

I also have the same problem.

Uncaught TypeError: Cannot read property 'received' of undefined
Connected!
Uncaught TypeError: Cannot read property 'received' of undefined
Uncaught TypeError: Cannot read property 'received' of undefined
Uncaught Error: Existing connection must be closed before opening
Disconnected!
Uncaught TypeError: Cannot read property 'received' of undefined
Connected!
Uncaught TypeError: Cannot read property 'received' of undefined
Uncaught Error: Existing connection must be closed before opening
Disconnected!

piotrgorecki avatar Oct 06 '16 18:10 piotrgorecki

Sorry, I have not had time to upgrade the module for the latest Rails 5 and/or React versions -- I no longer use it with any of my projects. Feel free to track it down and submit a PR!

schneidmaster avatar Oct 07 '16 17:10 schneidmaster

+1 Can anyone update and mantain this library? It's the only one out there which offers websocket implementation of action cable for react standalone apps (not integrated with rails via react-rails gem or something similar).

Edit: For anyone interested in similar functionality for more modern React versions i found this: https://github.com/cpunion/react-actioncable-provider

tommyalvarez avatar Mar 29 '17 14:03 tommyalvarez

Hey guys! Consider using my fork: https://github.com/kesha-antonov/react-native-action-cable And also please mention it in the README

Seems like people love it

kesha-antonov avatar Aug 20 '18 13:08 kesha-antonov