caktus / caktus/offlinedatacollector

Use Local Models on Load

Open
#20 1 comment 0 reactions 1 assignee Claimed by @mlavin View on GitHub
bug
Dominant language
JavaScript
Stars
1
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There seems to be a problem with loading models in offline mode. The current workflow is fine:
- Get the page
- Login -> collection form
- Lose connectivity
- Submit form
- Regain connectivity
- Syncs! \o/

However if you
- Get the page
- Login -> see results (because of previous submission)
- Lose connectivity
- Refresh page
- Form displays :(

It would appear the the `fetch` on the page load doesn't read from the local storage or it does but doesn't find the record for today so it shows the form.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.