How to get new object each time page initialised

I have structure imported from a JSON file each time Order page start like this:
import cartObject from '../static/cart.json' ;
then I fill cart structure with user input during the page life cycle.
when order submitted, user is routed to home page again.
when visiting Order page again, I expect to import fresh cart structure from cart.json to fill with new order, but the Cart still filled with old order,
why it is not start fresh ?
thank you for your help.

I solved it and if this can be useful to anyone, get your object each time through JS function and let the function return your object structure, rather than import/require it from JSON file, it won’t get refreshed even if you setStat(ed) it .