September 2022
Intermediate to advanced
410 pages
10h 7m
English
With all of that out of the way, we can add the ActionCable subscription back to the system, but we have a logistical problem to deal with first.
The logistical problem is that the ActionCable subscription needs to both be global and have external access to the existing VenueContext reducer. It needs to be global because multiple components may need access to the subscription data. But it also needs to be external from the VenueContext because the ActionCable subscription uses the concert_id, which is now stored as data in the state. But it will also need to use the dispatch function because the subscription receives data about what tickets have been held from the ActionCable channel, and it will need to ...