vue-query-synchronizer icon indicating copy to clipboard operation
vue-query-synchronizer copied to clipboard

Query props not reactive when going in history

Open ivopisarovic opened this issue 3 years ago • 0 comments

When a user goes back or forth in the browser history, the URL is changed but the values in components remain old.

I think the problem is in handler.setQuery() function. It is missing the reactive Vue.set/delete call for the changed parameters.

To simulate this problem, switch to the vue-2 branch, start it, change something in the form and the click the back button in the browser. The form remains unchanged.

v2.4.1, Vue 2

P.S. Thanks for this awesome library, extremely useful! ❤️

ivopisarovic avatar Jan 21 '22 09:01 ivopisarovic