Make derivedWarning an error and bind store instances
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
import type { SvelteFlowStore } from '$lib/store/types';
|
||||
|
||||
let {
|
||||
store,
|
||||
store = $bindable(),
|
||||
type,
|
||||
containerStyle = '',
|
||||
style = '',
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
const {
|
||||
edge,
|
||||
store,
|
||||
store = $bindable(),
|
||||
onedgeclick,
|
||||
onedgecontextmenu,
|
||||
onedgepointerenter,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
import { useSvelteFlow } from '$lib/hooks/useSvelteFlow.svelte';
|
||||
|
||||
let {
|
||||
store,
|
||||
store = $bindable(),
|
||||
selectionKey = 'Shift',
|
||||
multiSelectionKey = isMacOs() ? 'Meta' : 'Control',
|
||||
deleteKey = 'Backspace',
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
import type { NodeSelectionProps } from './types';
|
||||
|
||||
let {
|
||||
store,
|
||||
store = $bindable(),
|
||||
onnodedrag,
|
||||
onnodedragstart,
|
||||
onnodedragstop,
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
import type { NodeEvents } from '$lib/types';
|
||||
|
||||
let {
|
||||
store,
|
||||
store = $bindable(),
|
||||
node,
|
||||
resizeObserver,
|
||||
nodeClickDistance,
|
||||
|
||||
Reference in New Issue
Block a user