Default app doesn't actually write the "dreams" to the database


#1

Bug report!

Steps to reproduce

  1. Create a brand new fresh Glitch app and choose the hello-sqlite template.
  2. Click the Show button or head to foo.glitch.me
  3. Type a “dream” in the box
  4. Refresh the page

What I expected

To still see my “dream” in the list.

What actually happens

It’s gone! The list is back to the default.

Commentary

It would be super nice to have a template app that both reads from and writes to a database!


#2

This isn’t a bug, it’s by design and is mentioned in the source code itself.

There’s a template app with read/write capabilities in this collection: https://glitch.com/storage


#3

I see. Thanks! (I’d argue that the default app would be more useful as a starting point if it was more complete though.)