Skip to content

RTK query hook, entities as array #3813

Closed Answered by EskiMojo14
MPiland asked this question in Q&A
Discussion options

You must be logged in to vote
const { items } = useGetItemsQuery('itemsList', {
  selectFromResult: ({ data }) => ({
    items: data && selectAllItems(data)
  })
})

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@MPiland
Comment options

@MPiland
Comment options

@MPiland
Comment options

@EskiMojo14
Comment options

Answer selected by MPiland
@MPiland
Comment options

@EskiMojo14
Comment options

@MPiland
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants