LiveEdge pulse gaps: reset timer survives other producers, snapshots do not flash, flow: endpoints pulse as their node
This commit is contained in:
@@ -4,7 +4,7 @@ import { memo, useEffect, useMemo, useRef, useState } from "react"
|
||||
|
||||
import { useIsMobile } from "@/hooks/useMobile"
|
||||
import { cn } from "@/lib/utils"
|
||||
import type { EndpointNodeData } from "./endpoints"
|
||||
import { type EndpointNodeData, publisherOf } from "./endpoints"
|
||||
import { handleOffset, nodeHeight } from "./layout"
|
||||
import { useLiveValues } from "./liveStore"
|
||||
|
||||
@@ -57,7 +57,10 @@ function EndpointNodeComponent({ id, data, selected }: NodeProps) {
|
||||
seen.current.set(name, live.ts)
|
||||
if (first || live.prior) continue
|
||||
// Published by this label, by the rule its own edges pulse on (LiveEdge).
|
||||
if (provides.includes(name) && (!live.source || live.source.id === id)) {
|
||||
if (
|
||||
provides.includes(name) &&
|
||||
(!live.source || live.source.id === publisherOf(id))
|
||||
) {
|
||||
dir = "in"
|
||||
} else if (requires.includes(name)) {
|
||||
dir ??= "out"
|
||||
|
||||
Reference in New Issue
Block a user