payload-fields — Optimization
Normalize strings before field hooks
Section titled “Normalize strings before field hooks”Install payloadFieldsPlugin() when REST or Local API callers send money values as strings. It normalizes Persian digits and separators before Payload parses number fields.
Send integers from numeric clients
Section titled “Send integers from numeric clients”Pass minor-unit integers when the client already owns numeric conversion.
Handle nested slug uniqueness
Section titled “Handle nested slug uniqueness”Automatic collision suffixes apply only to top-level slugs. For slugs inside arrays, groups, or named tabs, use unique: false to avoid relying on suffixing.
Order field plugins deliberately
Section titled “Order field plugins deliberately”The plugin sees collections and globals present when it runs. Place plugins adding money fields before it, respecting its order of 900.