Skip to content
Loamis build console Read only

conversation

READ ONLY: generated from the specification

2 states, 6 events, 12 rules. Initial state: following.

Transition graph

followingdetached

Double outline: the initial state. Dashed line and ◆: the rule has a guard.

Transitions, as a list

  1. following, on contentAppended, to following, guarded: event.count > 0 and ctx.reducedMotion == true
  2. following, on contentAppended, to following, guarded: event.count > 0 and not ctx.reducedMotion == true
  3. detached, on contentAppended, to detached, guarded: event.count > 0
  4. following, on scrolledUp, to detached
  5. detached, on scrolledToBottom, to following
  6. following, on jumpToLatest, to following, guarded: ctx.reducedMotion == true
  7. following, on jumpToLatest, to following, guarded: not ctx.reducedMotion == true
  8. detached, on jumpToLatest, to following, guarded: ctx.reducedMotion == true
  9. detached, on jumpToLatest, to following, guarded: not ctx.reducedMotion == true
  10. following, on resized, to following
  11. following, on motionPreference, to following
  12. detached, on motionPreference, to detached

Live runner

Current state: following

a whole number; the machine samples -1, 0, 1, 3

Context

unread
0
reducedMotion
false

View flags now

showJump
false
showUnread
false
unreadCount
0
autoFollow
true
defaultFocus
"log"

Effects emitted

None.

Trace

No event sent yet.

States

following

initial

View flags

showJump
false
showUnread
false
unreadCount
0
autoFollow
true
defaultFocus
"log"

Rules that leave it

  1. contentAppended to following when event.count > 0 and ctx.reducedMotion == true ; emits scrollToEnd(false)
  2. contentAppended to following when event.count > 0 and not ctx.reducedMotion == true ; emits scrollToEnd(true)
  3. scrolledUp to detached
  4. jumpToLatest to following when ctx.reducedMotion == true ; emits scrollToEnd(false)
  5. jumpToLatest to following when not ctx.reducedMotion == true ; emits scrollToEnd(true)
  6. resized to following ; emits scrollToEnd(false)
  7. motionPreference to following ; sets reducedMotion := event.reduced

detached

View flags

showJump
true
showUnread
false
unreadCount
0
autoFollow
false
defaultFocus
"log"

Rules that leave it

  1. contentAppended to detached when event.count > 0 ; sets unread := ctx.unread + event.count
  2. scrolledToBottom to following ; sets unread := 0
  3. jumpToLatest to following when ctx.reducedMotion == true ; sets unread := 0 ; emits scrollToEnd(false)
  4. jumpToLatest to following when not ctx.reducedMotion == true ; sets unread := 0 ; emits scrollToEnd(true)
  5. motionPreference to detached ; sets reducedMotion := event.reduced
All machines