# CreateSelector doesn't memoise getBugsByUser

**URL:** https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287
**Category:** Redux
**Created:** [September 10, 2021, 8:55pm UTC](https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287 "2021-09-10T20:55:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Econno11y](https://avatars.discourse-cdn.com/v4/letter/e/e99b99/32.png) [@Econno11y](https://forum.codewithmosh.com/u/Econno11y)
#### Post date: [September 10, 2021, 8:55pm UTC](https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287/1 "2021-09-10T20:55:33Z")

</div>

I am going through Mosh’s redux course. I just followed along and implemented the solution to the challenge of assigning a user to a bug.  
At the end of the challenge, he shows us how to add a memoised getBugsByUser function with reselect. However, I set the output of getBugsByUser(1)(store.getState()) to two different variables, a and b. Then, I console logged a === b, and I get false. Is this a problem with the reselect library or am I missing something?  
Previous to this, I followed along with the course and implemented getUnresolvedBugs using reselect. I set getUnresolvedBugs(store.getState()) equal to two different variables, x and y, and x===y evaluates to true, as expected.

---

<div class="post-metadata">

### Author: ![sufian.babri](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/sufian.babri/32/1028_2.png) [@sufian.babri](https://forum.codewithmosh.com/u/sufian.babri)
#### Post date: [November 13, 2021, 4:47pm UTC](https://forum.codewithmosh.com/t/createselector-doesnt-memoise-getbugsbyuser/7287/2 "2021-11-13T16:47:57Z")

</div>

I noticed it too but I couldn’t find a way to memoise it either.
