Ekim Kael
Posted on July 9, 2018
I'm having a problem with my React.
I use React-Router and the Fetch API.
So... I have a list of products and when I click on one, I am redirected to a route to display more details on the product in question but also to display the other products.
Say: reactapp.com/all
for all products
reactapp.com/p/productID
my two URLs
My problem:
When I am on reactapp.com/p/productID
and I click on another product, the URL is updated but the product information is not updated.
When I click a second time, the product information I previously clicked is displayed
I don't know if you understand me.I have a data restriction at the moment.so I can't deploy so you can see it.
Please if you've understood what i mean, help me
Posted on July 9, 2018
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.