MCPcopy Create free account
hub / github.com/obgnail/typora_plugin / set

Method set

plugin/command_palette.js:149–153  ·  view source on GitHub ↗
(partialState)

Source from the content-addressed store, hash-verified

147 }
148
149 set(partialState) {
150 const prevState = this.state
151 this.state = { ...this.state, ...partialState }
152 this.notify(prevState)
153 }
154
155 notify(prevState) {
156 this.listeners.forEach(listener => listener(this.state, prevState))

Callers 1

Calls 1

notifyMethod · 0.95

Tested by

no test coverage detected