Skip to content

Commit 3a530c2

Browse files
committed
remove rx.page
1 parent b7a5599 commit 3a530c2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

docs/enterprise/react_flow/nodes.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,12 @@ class CustomNodeState(rx.State):
181181

182182

183183
@rx.memo
184-
def color_selector_node(data: rx.Var[dict[str, Any]], isConnectable: rx.Var[bool]): # noqa: N803
184+
def color_selector_node(data: rx.Var[dict], isConnectable: rx.Var[bool]):
185185
data = data.to(dict)
186186
return rx.el.div(
187187
rxe.flow.handle(
188188
type="target",
189189
position="left",
190-
on_connect=lambda params: rx.console_log(f"handle onConnect {params}"),
191190
is_connectable=isConnectable,
192191
),
193192
rx.el.div(
@@ -235,8 +234,6 @@ def node_color(node: rx.vars.ObjectVar[Node]):
235234
"#fff",
236235
)
237236

238-
239-
@rx.page(route="/nodes/custom-node", title="Custom Node Demo")
240237
def custom_node():
241238
return rx.box(
242239
rxe.flow(

0 commit comments

Comments
 (0)