Answer the question
In order to leave comments, you need to log in
Can I return a new object in createSelector?
There is a regular selector:
How can I get part of the data of the entire object, I did it through createSelector:
const selectUserData = state => state.user.data;
export const selectUserSomeData = createSelector(selectUserData, userData => {
return {
id: userData.id,
name: userData.name,
email: userData.email
}
})
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question