Choosing Between Layers and Functions for Effects and Dependencies
When do you choose to make a layer vs just utilizing a function creating an effect? I am trying to decide if it makes sense to make a layer for a function that fetches local JSON files (each will return different shape) should I make a layer for each shape, just use the effect in it's dependencies, or is there a way to abstract it as a single layer for all of the dependencies? Same question for pulling remote JSON.
