import {Snapstate} from "@chasemoskal/snapstate" import {Use} from "../../../../toolbox/magical-component.js" export function setupRerenderingOnSnapstateChanges(use: Use, snap: Snapstate) { use.setup( () => snap.subscribe( () => use.element.requestUpdate() ) ) }