MCPcopy Create free account
hub / github.com/AlexErrant/Pentive / TableCountProvider

Function TableCountProvider

app/src/components/tableCountContext.tsx:18–31  ·  view source on GitHub ↗
(props: { children: JSX.Element })

Source from the content-addressed store, hash-verified

16const TableCountContext = createContext<Signals>()
17
18export function TableCountProvider(props: { children: JSX.Element }) {
19 return (
20 <TableCountContext.Provider
21 value={{
22 // eslint-disable-next-line solid/reactivity
23 templateRowDelta: createSignal(),
24 // eslint-disable-next-line solid/reactivity
25 noteRowDelta: createSignal(),
26 }}
27 >
28 {props.children}
29 </TableCountContext.Provider>
30 )
31}
32
33export function useTableCountContext() {
34 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected