MCPcopy
hub / github.com/remix-run/react-router / submit

Method submit

packages/create-react-router/prompts-text.ts:122–139  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

120 }
121
122 async submit() {
123 this.value = this.value || this.initial;
124 this.cursorOffset = 0;
125 this.cursor = this.rendered.length;
126 await this.validate();
127 if (this.error) {
128 this.red = true;
129 this.fire();
130 this.render();
131 return;
132 }
133 this.done = true;
134 this.aborted = false;
135 this.fire();
136 this.render();
137 this.out.write("\n");
138 this.close();
139 }
140
141 next() {
142 if (!this.placeholder) return this.bell();

Callers 9

ComponentFunction · 0.45
ComponentFunction · 0.45
HomeFunction · 0.45
ParentFunction · 0.45
IndexFunction · 0.45
CompFunction · 0.45
ComponentFunction · 0.45
ComponentFunction · 0.45

Calls 4

validateMethod · 0.95
renderMethod · 0.95
fireMethod · 0.80
closeMethod · 0.80

Tested by 8

ComponentFunction · 0.36
ComponentFunction · 0.36
HomeFunction · 0.36
ParentFunction · 0.36
IndexFunction · 0.36
CompFunction · 0.36
ComponentFunction · 0.36
ComponentFunction · 0.36