Not really clear what files you are using from this point on: ActionCableProvider, which provides access to ActionCable through a React Context:
Update:
So played around trying out some file locations and names. Using ActionCableProvider.js and Posts.js saved in the app/javascript/components folder I can get thing to compile and load. However on submitting a post, I don't get it showing. In my console I get a couple errors:
Error: Cannot find module './PostWrapper' ReferenceError: PostsWrapper is not defined
Update 2 - the file I had guessed at naming ActionCableProvider.js should be called PostsWrapper.js
Final - here is my repo with things working incase it can help someone else:
Not really clear what files you are using from this point on: ActionCableProvider, which provides access to ActionCable through a React Context:
Update:
So played around trying out some file locations and names. Using ActionCableProvider.js and Posts.js saved in the app/javascript/components folder I can get thing to compile and load. However on submitting a post, I don't get it showing. In my console I get a couple errors:
Error: Cannot find module './PostWrapper'
ReferenceError: PostsWrapper is not defined
Update 2 - the file I had guessed at naming
ActionCableProvider.js
should be calledPostsWrapper.js
Final - here is my repo with things working incase it can help someone else:
github.com/tonydehnke/Blabber-RobR...
NOTES: I made a mistake on my DB migration - what is likes_count in Rob's documentation is likes_counter in my code.