I’m looking to get data from an API, save that data in some @Published variables in my app, then store that API data in Firebase. Here’s what I’m thinking:
- Get data from API
- Push that data to Firebase
- Add the API data to published variables in my app
Does this seem like a sound way to go about this? Another way I’ve thought about doing it is:
- Get the data from API
- Directly store that data in Firebase
- Pull that data from Firebase and store it in my @Published variables.
I’d LOVE some feedback on this!