П
Size: a a a
П
🚀🚀
createEffect<any, Client>(handler)🚀🚀
П
createEffect<any, Client>(handler)NK
S
true значении guard фильтра ? )DS
true значении guard фильтра ? )S
const setLocation = createEvent<{
currentLocation: Location<unknown>;
nextLocation: Location<unknown>;
}>("set location");
guard({
source: setLocation,
filter: () => true,
});
sample({
source: $location,
clock: updateLocation,
fn: (currentLocation, nextLocation) => ({ currentLocation, nextLocation }),
target: setLocation,
});
S
🦜
const setLocation = createEvent<{
currentLocation: Location<unknown>;
nextLocation: Location<unknown>;
}>("set location");
guard({
source: setLocation,
filter: () => true,
});
sample({
source: $location,
clock: updateLocation,
fn: (currentLocation, nextLocation) => ({ currentLocation, nextLocation }),
target: setLocation,
});
NN
ф
NN
🦜
🦜
NN
NN
🦜
NN
DS
const setLocation = createEvent<{
currentLocation: Location<unknown>;
nextLocation: Location<unknown>;
}>("set location");
guard({
source: setLocation,
filter: () => true,
});
sample({
source: $location,
clock: updateLocation,
fn: (currentLocation, nextLocation) => ({ currentLocation, nextLocation }),
target: setLocation,
});