- Add debounced state updates for title and content (500ms delay) - Immediate UI updates with delayed history saving - Prevent one-letter-per-undo issue - Add cleanup for debounce timers on unmount
11 lines
253 B
TypeScript
11 lines
253 B
TypeScript
import type {CodeKeywordDefinition} from "../../types"
|
|
import {dynamicRef} from "./dynamicRef"
|
|
|
|
const def: CodeKeywordDefinition = {
|
|
keyword: "$recursiveRef",
|
|
schemaType: "string",
|
|
code: (cxt) => dynamicRef(cxt, cxt.schema),
|
|
}
|
|
|
|
export default def
|