Right now, the playlists of a given block will be passed when first requesting the block from the backend. Arguably, in 90% of the cases we won't do anything with this playlists array. So perhaps instead we can let the Playlist component query this information directly when needed? Disadvantage: some delay when loading this component. Advantage: leaner & easier to understand object on first request to block.
Right now, the
playlists
of a given block will be passed when first requesting theblock
from the backend. Arguably, in 90% of the cases we won't do anything with thisplaylists
array. So perhaps instead we can let thePlaylist
component query this information directly when needed? Disadvantage: some delay when loading this component. Advantage: leaner & easier to understand object on first request toblock
.