News for hackers. Stuff that matters.
Re:How to store your app's entire state in the url by strongpigeon on Monday January 09, 2023 @12:59PM (#34313465)
Hah, I came up with the same thing for https://fivethreeone.app/calculator .

The reason I did the compression (using pako as well) was that without it the URL was too long to show a preview on iMessage. I also compress the state manually myself which saved a bunch of bytes too.

Re:How to store your app's entire state in the url by pjpweaver on Monday January 09, 2023 @06:09PM (#34317879)
I discovered when I hit a similar issue, that just putting a "-" character every 40 or so characters resolved the iMessage parsing issue. There may be a max URL length, but I hit it much sooner without the hyphens.