mirror of
https://github.com/phfroidmont/scalive.git
synced 2025-12-25 13:36:59 +01:00
Implement subscriptions
This commit is contained in:
parent
08036ab5aa
commit
5da0b64c3e
7 changed files with 103 additions and 45 deletions
|
|
@ -3,6 +3,7 @@ package playground
|
|||
|
||||
import scalive.*
|
||||
import zio.*
|
||||
import zio.stream.ZStream
|
||||
|
||||
import TestView.*
|
||||
class TestView extends LiveView[Msg, Model]:
|
||||
|
|
@ -29,6 +30,8 @@ class TestView extends LiveView[Msg, Model]:
|
|||
)
|
||||
)
|
||||
|
||||
def subscriptions(model: Model) = ZStream.empty
|
||||
|
||||
object TestView:
|
||||
|
||||
enum Msg:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue