I tried to use selectbyId helper method of reduxtoolkit without a success can anyone help me with this
Category Slice
export const { selectAll:selectCatetories,selectById:selectCategoryById }=categoriesAdapter.getSelectors(state=>state.inventory.categories.categories)Category Component
const category=useSelector((id)=>selectCategoryById(id))
I am sure there is something wrong with my implementation