You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React crashes with reference to the number of rendered hooks if e.g. a table with a row of checkboxes has paging or filtering, and renders fewer rows than it did on initial render.
This is due to getCheckboxProps and getRadioProps using hooks internally, but these functions are not hooks and should not use hooks.
Steps To Reproduce
Checkout branch getCheckboxProps-crash
Run Storybook
Go to "Komponenter > Checkbox > Conditional", click "Rediger", see crash
Rendered more hooks than during the previous render.
Go to "Komponenter > Checkbox > In Table With Pagination", click "Neste", see crash
Rendered fewer hooks than expected. This may be caused by an accidental early return statement.
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Version number
1.0.0
Description of the bug
React crashes with reference to the number of rendered hooks if e.g. a table with a row of checkboxes has paging or filtering, and renders fewer rows than it did on initial render.
This is due to
getCheckboxProps
andgetRadioProps
using hooks internally, but these functions are not hooks and should not use hooks.Steps To Reproduce
getCheckboxProps-crash
Additional Information
No response
The text was updated successfully, but these errors were encountered: