Only use the createSelector()
function if you need to derive state from your slice (e.g., you need to map over some items and transform them).
Only use the createSelector()
function if you need to derive state from your slice (e.g., you need to map over some items and transform them).