MCPcopy Create free account
hub / github.com/chhoumann/quickadd / hydrate

Method hydrate

src/utils/InputPromptDraftHandler.ts:20–26  ·  view source on GitHub ↗
(initialValue: string)

Source from the content-addressed store, hash-verified

18 }
19
20 hydrate(initialValue: string): string {
21 this.initialValue = initialValue;
22 if (!this.shouldPersist()) return initialValue;
23
24 const draft = this.store.get(this.draftKey);
25 return draft ?? initialValue;
26 }
27
28 markChanged(): void {
29 this.didChange = true;

Callers 5

formatContentOnlyMethod · 0.95
constructorMethod · 0.80
constructorMethod · 0.80

Calls 1

getMethod · 0.45

Tested by 1

formatContentOnlyMethod · 0.76