News for hackers. Stuff that matters.
Re:Music Grid by lukevp on Saturday June 13, 2020 @04:54PM (#23512635)
That was enjoyable to play with! Thanks for sharing. I think it would be nicer if it didn't use the anchor tag for storing data which messes up history, especially since it has a built-in share that generates a URL that can recreate the song. It would be cool if it just read the URL in once on load and didn't update it unless share was clicked.
Re:Music Grid by thinkloop on Saturday June 13, 2020 @05:21PM (#23512843)
To me the mistake is not having the back/forward buttons honor the different states. It would be a nice built-in undo/redo.
Re:Music Grid by irshadshalu on Sunday June 14, 2020 @01:15AM (#23515298)
Hey. Author here.

The history issue is fixed now :). I ended up using replaceState instead of pushState