Skip to content

Commit

Permalink
Fix: SplitRender.signal should be a lazy val, not def. Fixes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
raquo committed Nov 10, 2024
1 parent 0004a59 commit e301a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/main/scala/com/raquo/waypoint/SplitRender.scala
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ case class SplitRender[Page, View](
/** Signal of output elements. Put this in your DOM with:
* `child <-- SplitRender(page).collect(...).collectSignal(...).signal`
*/
def signal: Signal[View] = {
lazy val signal: Signal[View] = {
var maybeCurrentRenderer: Option[Renderer[Page, View]] = None

pageSignal.map { nextPage =>
Expand Down

0 comments on commit e301a8e

Please sign in to comment.