-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'issue/KRZ-189_Turbo_Mode' into 'next_0.9'
KRZ-189 Turbo Mode See merge request reactivecore/kreuzberg!57
- Loading branch information
Showing
11 changed files
with
164 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package kreuzberg | ||
|
||
import kreuzberg.RuntimeState.JsProperty | ||
import kreuzberg.dom.ScalaJsElement | ||
|
||
import scala.concurrent.ExecutionContext | ||
import scala.ref.WeakReference | ||
|
||
/** Context for imperative Event Handlers */ | ||
trait HandlerContext extends ModelValueProvider with ServiceRepository with ExecutionContext { | ||
|
||
/** Issue a model change. */ | ||
def setModel[T](model: Model[T], value: T): Unit | ||
|
||
/** Update model, existing to new state */ | ||
def updateModel[T](model: Model[T], updateFn: T => T): Unit | ||
|
||
/** Trigger a channel. */ | ||
def triggerChannel[T](channel: Channel[T], value: T): Unit | ||
|
||
/** Call another Event sink */ | ||
def triggerSink[E](sink: EventSink[E], value: E): Unit | ||
|
||
/** Read some JavaScript state. */ | ||
def state[T](state: RuntimeState[T]): T | ||
|
||
/** Set some JavaScript property. */ | ||
def setProperty[D <: ScalaJsElement, T](property: JsProperty[D, T], value: T): Unit | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters