Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: no longer updates Table while rendering TableHead #4525

Merged
merged 1 commit into from
Feb 4, 2025

Conversation

ivarni
Copy link
Contributor

@ivarni ivarni commented Jan 31, 2025

TableHead was calling a context callback during render that caused Table to update and change a state variable. Make sure this does not happend for any value of the "sticky" prop

🎯 Sjekkliste

  • pnpm build og pnpm ci:test gir ingen feil

Closes #4522

TableHead was calling a context callback during render that
caused Table to update and change a state variable. Make sure
this does not happend for any value of the "sticky" prop
@fremtind-bot
Copy link
Collaborator

fremtind-bot commented Jan 31, 2025

Forhåndsvisning: https://jokul.fremtind.no/preview/4522-sticky-fail/
🔍 Commit: 570099a

Forhåndsvisningen blir tilgjengelig innen et par minutter. Den fjernes automatisk når pull requesten lukkes.

fremtind-bot added a commit that referenced this pull request Jan 31, 2025
@ivarni ivarni marked this pull request as ready for review January 31, 2025 17:56
@ivarni ivarni requested a review from a team as a code owner January 31, 2025 17:56
@ivarni ivarni added this pull request to the merge queue Feb 4, 2025
Merged via the queue into main with commit 4dc0239 Feb 4, 2025
9 checks passed
@ivarni ivarni deleted the 4522-sticky-fail branch February 4, 2025 13:46
github-actions bot pushed a commit that referenced this pull request Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Feil: Hvis man ikke angir "sticky" = false så får man setState loop i første render av tabellen
3 participants