nank1ro / solidart

Signals in Dart and Flutter, inspired by SolidJS
https://docs.page/nank1ro/solidart
MIT License
163 stars 7 forks source link

Feat/make resource stream react to source #52

Closed nank1ro closed 1 year ago

nank1ro commented 1 year ago

Before, only the fetcher reacted to the source. Now also the stream reacts to the source changes by subscribing again to the stream.

In addition, the stream parameter of the Resource has been changed from Stream into a Stream Function() in order to be able to listen to a new stream if it changed

codecov[bot] commented 1 year ago

Codecov Report

:exclamation: No coverage uploaded for pull request base (dev@3b4d2eb). Click here to learn what that means. The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##             dev      #52   +/-   ##
======================================
  Coverage       ?   96.19%           
======================================
  Files          ?       18           
  Lines          ?      736           
  Branches       ?        0           
======================================
  Hits           ?      708           
  Misses         ?       28           
  Partials       ?        0