MCPcopy
hub / github.com/tldraw/tldraw / resetShaderConfig

Function resetShaderConfig

templates/shader/src/minimal/config.ts:30–32  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28export const shaderConfig = atom<ShaderManagerConfig>('shader-config', initialValue)
29
30export function resetShaderConfig() {
31 shaderConfig.set(DEFAULT_CONFIG)
32}
33
34react('save to local storage', () => {
35 localStorage.setItem(STORAGE_KEY, JSON.stringify(shaderConfig.get()))

Callers

nothing calls this directly

Calls 1

setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…