logux / client

Logux base components to build web client
https://logux.org/
MIT License
656 stars 46 forks source link

use since when creating offline remote stores #96

Closed ngalaiko closed 2 years ago

ngalaiko commented 2 years ago

This is similar to 71bee24, but for a single store.

Sending since when subscribing to stores allows to reduce data sent back and forth for remote offline stores.

ngalaiko commented 2 years ago

@ai I am not sure how to make re-subscription in test to CacheStore to make it send the subscribe action. could you help me?

ngalaiko commented 2 years ago

and another question: what's the difference between loading Promise and isLoading flag on the stores from a user perspective?

ai commented 2 years ago

Will review tomorrow. Too complicate for night review.

ai commented 2 years ago

Sorry, today used my open source time for Autoprefixer and my first action for GitHub Action.

what's the difference between loading Promise and isLoading flag on the stores from a user perspective?

They are about the same process, just a shortcut. We need two keys, since you can’t use loading Promise in if ().

ai commented 2 years ago

Thanks. Released in 0.18.2.