MCPcopy
hub / github.com/vitejs/vite / render

Function render

playground/hmr-ssr/file-delete-restore/runtime.js:3–6  ·  view source on GitHub ↗
(newState)

Source from the content-addressed store, hash-verified

1let state = {}
2
3export const render = (newState) => {
4 state = newState
5 apply()
6}
7
8export const rerender = (updates) => {
9 state = { ...state, ...updates }

Callers 1

index.jsFile · 0.90

Calls 1

applyFunction · 0.70

Tested by

no test coverage detected