Skip to content

Error: Attempt to serialize function in a Recoil cache key #12339

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

Closed
sentry-io bot opened this issue May 28, 2025 · 3 comments
Closed

Error: Attempt to serialize function in a Recoil cache key #12339

sentry-io bot opened this issue May 28, 2025 · 3 comments
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented May 28, 2025

Sentry Issue: TWENTY-FRONT-492

Error: Attempt to serialize function in a Recoil cache key
  at Array.map (<anonymous>)
  at Array.map (<anonymous>)
  at Array.map (<anonymous>)
  at Array.map (<anonymous>)
  at <anonymous> (../../src/modules/ui/utilities/hotkey/hooks/usePreviousHotkeyScope.ts:19:24)
...
(31 additional frame(s) were not displayed)
@bosiraphael
Copy link
Contributor

Suspect commit #12166

@bosiraphael bosiraphael moved this from 🔖 Planned to 🏗 In Progress in 🎯 Roadmap & Sprints May 30, 2025
@bosiraphael
Copy link
Contributor

After investigation, I managed to reproduce the bug, but only in production, not locally, even in preview mode, by opening the record picker inside settings/object/{objectName} in the settings tab and hovering icons, then hovering the search bar.

Image

@bosiraphael
Copy link
Contributor

I tested with the tag v0.54.7 locally and the bug is still present but it is no longer present on main. I think that this PR fixed it: #12356, so I'm closing this issue.

@github-project-automation github-project-automation bot moved this from 🏗 In Progress to ✅ Done in 🎯 Roadmap & Sprints May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ✅ Done
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant