Closed cheekw closed 1 year ago
@cheekw hmm, do you know why memo
might have caused this?
@cheekw hmm, do you know why
memo
might have caused this?
memo() basically skips re-rendering unless props change.
But it doesn't do a deep equality check. Since we were wrapping SearchBar with memo() and were passing values through an object selectProps
, it assumes that props haven't changed, causing it to not re-render.