Is your feature request related to a problem? Please describe.
Because of the new endpoint created in #662 we will now need to have a way to consume the events on the frontend. For our project this will consist of two steps:
Create a generic hook that allows creation of an EventSource for a given endpoint and appropriately attach callbacks or if a request body is required a library such as fetchEventSource would be required
Use that implementation to create a hook that allows us to constantly stream event signup numbers on the front end
[!NOTE]
You should not be hard-coding the base url for the endpoint, instead look into process.env to get the appropriate base URL
[!WARNING]
There should be a way for us to close the connection if needed
Is your feature request related to a problem? Please describe.
Because of the new endpoint created in #662 we will now need to have a way to consume the events on the frontend. For our project this will consist of two steps:
EventSource
for a given endpoint and appropriately attach callbacks or if a request body is required a library such asfetchEventSource
would be requiredBEFORE MERGING
git fetch origin master:master
, thengit rebase master
orgit merge master
)