context.ts
1 import type {Repo} from "@automerge/automerge-repo" 2 import {createContext} from "solid-js" 3 4 /** 5 * a [context](https://docs.solidjs.com/concepts/context) that provides access 6 * to an Automerge Repo. you don't need this, you can pass the repo in the 7 * second arg to the functions that need it. 8 */ 9 export const RepoContext = createContext<Repo | null>(null)