Skip to content

Commit 695c7b9

Browse files
committed
Made ReactS.>> lazy
1 parent ea7b273 commit 695c7b9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

HISTORY.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ History
44
### 0.5.4 (unreleased)
55

66
* Added `nop` and `_nop` to `ReactS.Fix{,T}`.
7+
* Made `ReactS.>>` lazy.
78

89
### 0.5.3 ([commit log](https://github.com/japgolly/scalajs-react/compare/v0.5.2...v0.5.3))
910

scalaz-7.0/src/main/scala/japgolly/scalajs/react/ScalazReact.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ object ScalazReact {
195195
s.flatMap(ReactS.callbackT(c))
196196

197197
// This shouldn't be needed; it's already in BindSyntax.
198-
def >>[B](t: ReactST[M,S,B])(implicit M: Bind[M]): ReactST[M,S,B] =
198+
def >>[B](t: => ReactST[M,S,B])(implicit M: Bind[M]): ReactST[M,S,B] =
199199
s.flatMap(_ => t)
200200

201201
/** zoom2 because StateT.zoom already exists. 2 because it takes two fns. */

scalaz-7.1/src/main/scala/japgolly/scalajs/react/ScalazReact.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ object ScalazReact {
194194
s.flatMap(ReactS.callbackT(c))
195195

196196
// This shouldn't be needed; it's already in BindSyntax.
197-
def >>[B](t: ReactST[M,S,B])(implicit M: Bind[M]): ReactST[M,S,B] =
197+
def >>[B](t: => ReactST[M,S,B])(implicit M: Bind[M]): ReactST[M,S,B] =
198198
s.flatMap(_ => t)
199199

200200
/** zoom2 because StateT.zoom already exists. 2 because it takes two fns. */

0 commit comments

Comments
 (0)