Closed staltz closed 1 year ago
https://github.com/ssbc/ssb-meta-feeds/pull/110#discussion_r1023762878
If you call branchStream with live first, and then immediately call branchStream with old second, then the second one will just assume that the state has loaded, without actually waiting for it.
Just a bit of booleans and some ifs.
1st :x: 2nd :heavy_check_mark:
Context
https://github.com/ssbc/ssb-meta-feeds/pull/110#discussion_r1023762878
Problem
If you call branchStream with live first, and then immediately call branchStream with old second, then the second one will just assume that the state has loaded, without actually waiting for it.
Solution
Just a bit of booleans and some ifs.
1st :x: 2nd :heavy_check_mark: