Best practices regarding fetching and parsing data from an API call

I have a question regarding best practices when fetching / parsing data from an API call.

Option 1: API call with an adapter on fetch storing the modified data
Option 2: Always store raw data from API call and rely on getters for adaptation

Notes: The data set returned will be large and I likely won’t be using the raw data.

In terms of code clarity, simplicity, and performance which option is best?

1 Like

I have this question too. Option 1 seems more memory efficient, Option 2 seems more inline with vuex standards?

1 Like