Re:How to store your app's entire state in the url
by _fat_santa on Monday January 09, 2023 @03:53PM
(#34315864)
I suspect it's probably a global library that handles this. So refactoring it in one place would be difficult. If I had to guess their implementation looks something like this.
Likely, that "SomeUrlService" is also tacking on plenty of other shit to the URL that is passed along. I don't work for Yahoo and never have, so this is all pure speculation.
SomeUrlService.pushState(JSON.stringify({ foo: 'bar' }));
SomeUrlService.navigate('/some/url/here')
Likely, that "SomeUrlService" is also tacking on plenty of other shit to the URL that is passed along. I don't work for Yahoo and never have, so this is all pure speculation.