moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

shimmer list on wallet #502

Closed lastmeta closed 2 years ago

lastmeta commented 2 years ago

Describe The Bug

changing the context of the app hides the wallet contents

To Reproduce

go from wallet to manage and back to wallet

Expected Behavior

don't hide it

Log Output

8
I/flutter (29751): false
I/flutter (29751): Hiding holdings: false; Hiding while waiting for unspents: false; Freeze holdings while waiting for unspents: false
I/flutter (29751): false
I/flutter (29751): holding view
6
I/flutter (29751): true
I/flutter (29751): Hiding holdings: true; Hiding while waiting for unspents: false; Freeze holdings while waiting for unspents: false
2
I/flutter (29751): true

Additional Context

I turned the creation of _hidelist from = true to = false, and the above log shows that we the page loaded with it being false, but then reloaded again, with all true. 9 print outs of false, and 8 print outs of true the second time.

I cannot figure out why or how it's turning true though.

Screenshots

No response

Tasks For This Bug

lastmeta commented 2 years ago

this one was due to the use of behavior subjects where publish subjects would do, apparently when you subscribe to a behaviorsubject it provides you the most recent value each time (not just when you ask for .value) so, it was reloading the page, and setting hidelist to true.