Describe the bug
We faced an issue regarding some cells in our application not triggering their translations correctly.
Looking at the attached codesandbox you can see 2 examples. One working and one not.
We discovered that when data is defined outside the export of the component .accessor function don't trigger as expected.
Your minimal, reproducible example
https://codesandbox.io/s/i18next-react-table-forked-2znx8c?file=/src/NoWorks.tsx
Steps to reproduce
- Go to https://codesandbox.io/s/i18next-react-table-forked-2znx8c?file=/src/NoWorks.tsx
- Open console
- On default you see 'en' language logged by both the 'works' and 'noWorks' component.
- Click on Netherlands button
- You will see the 'works' rendered language console.log inside 'columnHelper.accessor' does correctly trigger
- You will also see the counter for 'noWorks' triggered but the rendered language console.log inside 'columnHelper.accessor' don't trigger
- Click on English button and see step 5 to 6 repeated.
Expected behavior
As a User I am expecting the accessor function to trigger despite the DataTable data being imported from outside the component or initiated inside the component.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
- OS: macOS, Windows
- Browser: Chrome, Safari, Firefox
react-table version
v8.5.15
TypeScript version
v4.8.4
Additional context
No response
Terms & Code of Conduct
Describe the bug
We faced an issue regarding some cells in our application not triggering their translations correctly.
Looking at the attached codesandbox you can see 2 examples. One working and one not.
We discovered that when data is defined outside the export of the component .accessor function don't trigger as expected.
Your minimal, reproducible example
https://codesandbox.io/s/i18next-react-table-forked-2znx8c?file=/src/NoWorks.tsx
Steps to reproduce
Expected behavior
As a User I am expecting the accessor function to trigger despite the DataTable data being imported from outside the component or initiated inside the component.
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform
react-table version
v8.5.15
TypeScript version
v4.8.4
Additional context
No response
Terms & Code of Conduct