Skip to content

Stale Addresses #16126

@Poavei

Description

@Poavei

Describe the Bug

Whenever a user logs in, the addresses from the previous session seem to persist and not update to the new users information until a refresh has occured. This includes when there has been no previously logged in user and the site instead shows no addresses in the case where there should be some. This also blocks a just signed in user from completing the checkout. While I have shown 3.79.0 in the below packages, the same issue appears in the latest (3.81.0) release as well.

Link to the code that reproduces this issue

https://github.com/Poavei/e-commerce-issue

Reproduction Steps

  1. Install repo (or the e-commerce template)
  2. Create admin account
  3. Seed products and add inventory
  4. Make sure there is at least one address
  5. Logout
  6. Create new account
  7. Go straight to "Addresses"
  8. Previous addresses should display

Which area(s) are affected?

plugin: ecommerce

Environment Info

pnpm payload info 

> ecommerce-test@1.0.0 payload /Users/pvinciauskas/Documents/Development/Web/ecommerce-test
> cross-env NODE_OPTIONS=--no-deprecation payload info

npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm.
npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm.
npm warn Unknown env config "enable-pre-post-scripts". This will stop working in the next major version of npm.
npm warn Unknown project config "enable-pre-post-scripts". This will stop working in the next major version of npm.

Binaries:
  Node: 24.2.0
  npm: 11.3.0
  Yarn: 1.22.22
  pnpm: 10.12.1
Relevant Packages:
  payload: 3.79.0
  next: 16.2.1
  @payloadcms/db-sqlite: 3.79.0
  @payloadcms/drizzle: 3.79.0
  @payloadcms/email-nodemailer: 3.79.0
  @payloadcms/graphql: 3.79.0
  @payloadcms/live-preview: 3.79.0
  @payloadcms/live-preview-react: 3.79.0
  @payloadcms/next/utilities: 3.79.0
  @payloadcms/plugin-form-builder: 3.79.0
  @payloadcms/plugin-seo: 3.79.0
  @payloadcms/richtext-lexical: 3.79.0
  @payloadcms/translations: 3.79.0
  @payloadcms/ui/shared: 3.79.0
  react: 19.2.4
  react-dom: 19.2.4
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 25.3.0: Wed Jan 28 20:54:55 PST 2026; root:xnu-12377.91.3~2/RELEASE_ARM64_T8132
  Available memory (MB): 16384
  Available CPU cores: 10

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions