hunk.code_window:   },
     "peerDependencies": {
       "solid-js": "^0.20.3"
     },
     "devDependencies": {
       "solid-js": "^0.21.0"
  
hunk.labels: keep keep replace keep keep keep
hunk.after_edit:     "solid-js": "^0.21.0"
  
hunk.file_path: packages/solid-styled-components/package.json
hunk.type: replace
file: import { createSignal, onCleanup } from "solid-js";
  
  export function from<T>(fn: (setter: (v: T) => void) => (() => void) | void) {
    const [s, set] = createSignal<T>(),
      disposer = fn(set);
    if (disposer) onCleanup(disposer);
    return s;
  }
  