Skip to content

Is there specific advantages/disadvantages when using selectors vs not using a selectors? #2420

Answered by dbritto-dev
dmdum asked this question in General
Discussion options

You must be logged in to vote

@dmdum sure, let me explain you that a little bit: let's say you only have one field and no store actions. In that case would be the same using and not using selectors shouldn't be any difference. Now let's say you have two selectors but you are using them in two different components, each time you update one of them that would trigger a new render. How can avoid extra renders on a field that's not changing? the only way to achieve that is by using selectors.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dmdum
Comment options

Answer selected by dmdum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants