State is not maintained after clicking back in the browser (Vue 2 project)

46 Views Asked by At

I have a radio button group (created with ant-design-vue) which gets disactivated when I go back (in browser) to that view after having visited another page.

Screenshot of radio-group (https://i.stack.imgur.com/0ow03.png)

I have tried adding state (Vuex - didn't exist previously), I've tried listening to the window popstate and I've tried to re-set the state during the created and mounted lifecycle hooks, but nothing has worked. The project doesn't use a router so that solution is not an option.

Would really appreciate any help.

0

There are 0 best solutions below