Repository navigation
fix: infinite loop caused within block component - #78
Merged
Merged
Conversation
yashrajsharan18
added a commit
to yashrajsharan18/payload
that referenced
this pull request
Aug 8, 2026
Dynogic
added a commit
to Dynogic/payload
that referenced
this pull request
Sep 1, 2026
…slug, SSR-correct, condition-aware) Supersedes payloadcms#8/payloadcms#57 and the hash halves of payloadcms#64/payloadcms#70. A typed `slug` on NamedTab/UnnamedTab; one derivation (useSearchParams → condition-aware first slug match → local click → first visible) replaces the four hash mechanisms, so the addressed tab is in the SSR HTML. replaceState with the payloadcms#70 identical-URL guard; payload-tab-change fires on every derived change; admin:hashchange retired. Post-create redirects (client + server) keep ?tab=. hideTabs keys off slug. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01LgB5YKnaKZqEP6goS2cNbo
Dynogic
added a commit
to Dynogic/payload
that referenced
this pull request
Sep 5, 2026
… and tabs, stamped as data-width-tier A collection/global declares its document view's width tier (form 950 | wide 1280 | editor 1600 | fullbleed) via admin.custom.widthTier; a tab overrides it while active via tab.admin.custom.widthTier. DocumentFields stamps the resolved tier on .document-fields (never inside a drawer, never in the live-preview pane); TabContent stamps the active tab's tier on its content div (SSR-correct via payloadcms#78) and finally applies tab.admin.className. SCSS caps + centers .document-fields, letting any descendant stamp override the root's tier (widest wins); the form tier fixes a 638px fields column beside a reserved side column. Tokens (--page-width-*, --page-fields-column) are the consuming app's, px references as fallbacks. Shared helpers exported from payload/shared. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01T5GJo9SrABCxiZpYHWzrHg
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #77 - wow. We were setting default values for the
labelsprop within theBlockscomponent itself, which would cause thememoizedValidatecallback to be recreated every render. Voila, infinite loop.Type of change
Checklist: