egonSchiele / chisel

Open source writing app
https://chiseleditor.com
Other
38 stars 3 forks source link

fix: Update cache upon saving #11

Closed alexandersmanning closed 1 year ago

alexandersmanning commented 1 year ago

Currently when you save and then switch chapters, the content for the other chapter pulls from the currentBook cache. In the case where you switch back, you risk losing your work.

this fixes issue #7

Before cache-issue

After cache-fix

egonSchiele commented 1 year ago

Nice catch!

egonSchiele commented 1 year ago

This is now covered by an integration test https://github.com/egonSchiele/chisel/blob/main/cypress/e2e/EditAndSwitch.cy.ts