bearbob / bearbob/LiftingLog

Race condition for storeWeightLog

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

Description

The current implementation of `storeWeightLog` runs into a race condition. This can lead to data loss, if request are made fast enough. The reason is, that the current state of the data in the storage is retrieved with `retrieveData` and the result is handled in a callback, leading to asynchronous handling.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.