The relevance auto-select ran in a Feed effect that raced per-keystroke query updates, so fast typing left the sort on the default. Move the switch into the header input's onChange so it's set atomically with the query (only overriding the default newest sort); the Feed effect now only reverts to newest when the term is cleared. 'Back to feed' also sets relevance explicitly. |
||
|---|---|---|
| .. | ||
| public/welcome | ||
| src | ||
| index.html | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| vite.config.ts | ||