dependabot[bot] on github_actions
Bump actions/cache from 3.0.1 t… (compare)
cquiroz on master
Update scala3-library, ... to 3… Merge pull request #248 from sc… (compare)
cquiroz on master
Update scalajs-react:core to 2.… Merge pull request #250 from sc… (compare)
cquiroz on master
Update scalafmt-core to 3.5.2 Merge pull request #249 from sc… (compare)
cquiroz on master
Update sbt-scalajs, scalajs-com… Merge pull request #245 from sc… (compare)
cquiroz on master
Update scalafmt-core to 3.5.1 Merge pull request #246 from sc… (compare)
cquiroz on master
Update scalajs-react:core to 2.… Merge pull request #247 from sc… (compare)
RefreshData
from server actioncase RefreshData =>
and when results are returned by the server, it dispatches another action (a case class) with the list of data (just like your Todo component in the SPA tutorial)Circuit.connect
a react component, the component is always rendered twice. To me the issue seems to lie in ReactConnector.didMount
which calls .setState(modelReader())
( https://github.com/suzaku-io/diode/blob/master/diode-react/src/main/scala/diode/react/ReactConnector.scala#L107 ) unnecessarily as it's already set in .initialState(modelReader())
( https://github.com/suzaku-io/diode/blob/master/diode-react/src/main/scala/diode/react/ReactConnector.scala#L129 ). Is there another reason to re-set the state?