wsb-daemon 0.275.7622

wsb's daemon: the workbench, the GitHub mirror's schedule and peer continuity, for every workspace on the machine
<script lang="ts">
  import VirtualizerTest from './VirtualizerTest.svelte';

  type Options = { measureCacheKey: string; count: number };

  interface Props {
    type: 'element' | 'window';
    controller: {
        initialOptions: Options;
        updateOptions: (opts: Options) => void;
    };
    onInstanceChange: (inst: unknown) => void;
  }

  let { type, controller, onInstanceChange }: Props = $props();
  
  let options = $state<Options>({ measureCacheKey: '', count: 0 });

  $effect(() => {
    options = controller.initialOptions;
  });

  $effect(() => {
    controller.updateOptions = (newOpts: Options) => {
      options = newOpts;
    };
  });
</script>

<VirtualizerTest {type} {options} {onInstanceChange} />