We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8893107 commit f3899e2Copy full SHA for f3899e2
1 file changed
core/rendered_connection.ts
@@ -625,6 +625,22 @@ export class RenderedConnection extends Connection {
625
this.sourceBlock_.bumpNeighbours();
626
}
627
628
+
629
+ /**
630
+ * Change a connection's compatibility.
631
+ * Rerender blocks as needed.
632
+ *
633
+ * @param check Compatible value type or list of value types. Null if all
634
+ * types are compatible.
635
+ * @returns The connection being modified (to allow chaining).
636
+ */
637
+ override setCheck(check: string | string[] | null): RenderedConnection {
638
+ super.setCheck(check);
639
+ if (this.sourceBlock_.rendered) {
640
+ this.sourceBlock_.queueRender();
641
+ }
642
+ return this;
643
644
645
646
export namespace RenderedConnection {
0 commit comments