Commit 8f9a65e
authored
fix(search): exclude Configure from devtools source injection (#841)
react-instantsearch's <Configure> widget forwards all of its JSX props
to Algolia's search parameters. The @tanstack/devtools-vite plugin
injects `data-tsd-source="file:line:col"` onto every JSX element in dev,
and Configure's pass-through meant the attribute ended up in the request
body. Algolia responded with:
{"message":"Unknown parameter: data-tsd-source","status":400}
and InstantSearch silently circuit-broke — typing in the docsearch
modal produced no results.
Pass `injectSource.ignore.components: ['Configure']` so the devtools
plugin leaves <Configure> alone. Dev-only change; prod builds already
strip the attribute.1 parent 6752c0d commit 8f9a65e
1 file changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
198 | 211 | | |
199 | 212 | | |
200 | 213 | | |
| |||
0 commit comments