numberscope / frontscope

Numberscope's front end and user interface: responsible for specifying sequences and defining and displaying visualizers
MIT License
7 stars 15 forks source link

State Isn't Saved If You Refresh Page #39

Closed liammulh closed 3 months ago

liammulh commented 3 years ago

Not a pressing issue, but something we'll eventually want to sort out.

Steps to Reproduce

  1. Run the frontscope development server. (Run it locally.)
  2. Click the "Get Started!" button.
  3. Add natural numbers.
  4. Add differences.
  5. Create bundle.
  6. Refresh the page.

You will no longer have your natural numbers + differences bundle.

Solution(s)

gwhitney commented 3 years ago

Another potentially instructive example of a graphical Vue app that keeps state across page reloads, without using the whole vuex mechanism, is https://konvajs.org/docs/vue/Save-Load.html (note however that it's a different graphics library, not p5, and it's Vue 2.x, not Vue 3; but I think the basic ideas are still valid, although not 100% certain).

khaledallen commented 2 years ago

This might be somewhat connected to #83. Saving state for exporting might be useful for saving state internally as well.

gwhitney commented 3 months ago

resolved in ui2. Closing.