benwiley4000 / volca-sampler

Send a new sound to your volca sample!

Home Page:https://volcasampler.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Store focused sample in history state (with replace)

benwiley4000 opened this issue · comments

Using hash router

Changed my mind

Compromise solution... put it in the history state so we don't lose this information if we refresh or navigate to a different site, but also don't try storing URLs that might result in 404 later or always default to this sample - it's better to default to the recording view.

Session storage might be preferable to history state. Not sure if it makes a big difference but using session storage for this seems more natural.