mirror of
https://github.com/zaphar/kitchen.git
synced 2025-07-22 19:40:14 -04:00
NOTE comment.
This commit is contained in:
parent
874a5fdb57
commit
a320351041
@ -174,8 +174,9 @@ impl StateMachine {
|
|||||||
local_store: &LocalStore,
|
local_store: &LocalStore,
|
||||||
original: &Signal<AppState>,
|
original: &Signal<AppState>,
|
||||||
) -> Result<(), crate::api::Error> {
|
) -> Result<(), crate::api::Error> {
|
||||||
// TODO(jwall): We use a linear Signal in here to ensure that we only
|
// NOTE(jwall): We use a linear Signal in here to ensure that we only
|
||||||
// call set on the signal once.
|
// call set on the signal once. When the LinearSignal get's dropped it
|
||||||
|
// will call set on the contained Signal.
|
||||||
let mut original: LinearSignal<AppState> = original.into();
|
let mut original: LinearSignal<AppState> = original.into();
|
||||||
if let Some(state) = local_store.fetch_app_state() {
|
if let Some(state) = local_store.fetch_app_state() {
|
||||||
original = original.update(state);
|
original = original.update(state);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user