Store icon indicating copy to clipboard operation
Store copied to clipboard

Emit data into collected stream after write or fetch with no SourceOfTruth

Open filanjuraj opened this issue 1 year ago • 1 comments

Closes #541

Description

Writing into Store doesnt emit data into collected stream (reading from Store), also when collecting stream with localOnly request. Happens only if you don't provide SourceOfTruth.

Steps to reproduce the behavior:

Writing into store:

  1. Start collecting stream (read from Store with key X)
  2. Write into Store new data with key X
  3. Collected stream doesnt receive the new data
  4. Start collecting stream again (read from store with key X) gives you the new data

Collecting stream with LocalOnly request:

  1. Start collecting strean with LocalOnly request with key X
  2. Fetch new data with key X
  3. Collected stream doesnt receive the new data
  4. Start collecting stream again (read from store with key X) gives you the new data

Type of Change

  • [x] Bug fix (non-breaking change which fixes an issue)

Test Plan

Added new tests. Tested in sample app.

Checklist:

Before submitting your PR, please review and check all of the following:

  • [x] I have performed a self-review of my own code
  • [x] I have commented my code, particularly in hard-to-understand areas
  • [x] My changes generate no new warnings
  • [x] I have added tests that prove my change is effective
  • [x] New and existing unit tests pass locally with my changes

Additional Notes:

Add any other information about the PR here.

filanjuraj avatar Apr 16 '24 14:04 filanjuraj

does this reproduce in 5.1.0-alpha06? i actually use stream.cached(refresh = false) together with store.fresh() and it works correctly

itsandreramon avatar Mar 03 '25 18:03 itsandreramon