T
TanStack6mo ago
wise-white

eslint no-unused-var triggers on AppField rendering (vite/react/js)

Any idea why would pnpm create vite my-react-app --template react with tanstack form mark this field as unused var? Ofc it goes away if I destruct const { Component } = field;, but I prefer to keep this inlined.
<form.AppField name="{name}">
{(field) => (
<field.GroupCheckboxField tableCols="{tableCols}" />
)}
</form.AppField>
<form.AppField name="{name}">
{(field) => (
<field.GroupCheckboxField tableCols="{tableCols}" />
)}
</form.AppField>
No description
1 Reply
rare-sapphire
rare-sapphire6mo ago
That's weird. I've never seen this bug. Could you report to ESLint plz? Thanks!

Did you find this page helpful?