[DOC]How to use useTable with medusajs v1 #6474
Closed
spacewalkingninja
started this conversation in
General
Replies: 1 comment
-
Hey @spacewalkingninja you can use our AI chatbot in our documentation or in our discord for your questions. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Documentation issue
This is my custom modified index.tsx from
https://refine.dev/templates/next-js-ecommerce-store/
Describe the thing to improve
As you can see in the above code in the clientside section I have code that edits the URL in the browser and tries to make a priceRange selector thing:
and also note that on clientside I am arleady TRYING mY BEST to filter the results:
But it dont work simply working with the initialResults on clientside no matter how I change the priceRange values it won't filter them the way I want.
So I tried working on serverSide:
...
According to my console.log's in clientSide alone, the priceFiltering should work, but visually I'm seeing all products the same.
And serverSide section the console.log "PP is"+price only prints the filtered products, so the serverside also works BUT on UI I see all products, not only the filtered products.
What am I doing wrong?
Describe the solution (optional)
I also have another clientSide implementation that I don't know how to make work:
how do I make it access product.variants.calculated_price I dont think the way I implemented it it works good for medusajs data structure because it must access object within object or smth like this?
Thx
Beta Was this translation helpful? Give feedback.
All reactions