(initialValue: string)
| 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; |