Description
The selector useGetLinks in modules\client-framework\src\Store\Links\LinksSelectors.ts is making a dispatch call to ensure we load categories from the server if necessary. Redux selectors are intended to be pure functions. Calling dispatch from within a selector breaks that rule.
Since updating the redux version, our console logs are being filled with warning messages regarding this selector. We should figure out a way to ensure we can load categories appropriately without triggering this warning message.
In addition to resolving the dispatch issue, we might need to memoize the results or update the selector logic since they are currently always returning new object references (i.e. array.map results)
Please sign in to leave a comment.