Title: Only latest Pinia store included in state. · Issue #15232 · getsentry/sentry-javascript · GitHub
Open Graph Title: Only latest Pinia store included in state. · Issue #15232 · getsentry/sentry-javascript
X Title: Only latest Pinia store included in state. · Issue #15232 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/15232
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Only latest Pinia store included in state.","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/nuxt\n\n### SDK Version\n\n8.52.0\n\n### Framework Version\n\nNuxt 3.15.3\n\n### Link to Sentry event\n\nhttps://laik.sentry.io/issues/6257984198/events/c01972b7621d4f579be515ee9f49596e/\n\n### Reproduction Example/SDK Setup\n\nhttps://github.com/Parakoos/nuxt-pinia-sentry-multiple-stores\n\n### Steps to Reproduce\n\n1. Add `NUXT_PUBLIC_SENTRY_DNS` to `.env` file in root.\n2. Add `SENTRY_AUTH_TOKEN` to `.env.sentry-build-plugin` in root.\n3. Start by running `npm run dev`\n4. Open the one and only page. On it, there are three tests outlined.\n\nTest 1: captures a Sentry Message without changing the stores. \nTest 2: Modifies first the `counter` store then the `announcer` store, then captures a Sentry Message.\nTest 3: Same as Test 2, but reverses the order in which the two stores are modified.\n\nFor each test, reload the page and push the buttons in the order given. Look at the console log and take note of the logged output of the state transformer (which just adds some extra data). Then look at the Sentry Event captured.\n\n### Expected Result\n\n**Expectation 1: Application State**\n\nIn Sentry, under 'Context -> Application State', the State Transformer 'transformed' state should include all Pinia stores.\n\n**Expectation 2: StateTransformer Input**\n\nThe State Transformer should get the full state of Pinia, not just the modified store. That way, you can apply changes knowing the structure of the state object. \n\n### Actual Result\n\n**Actual 1: Application State**\n\n_Test 1: captures a Sentry Message without changing the stores._ \n\nIn Sentry, under 'Context -> Application State', there is nothing. The section doesn't even show up.\n\n_Test 2: Modifies first the `counter` store then the `announcer` store, then captures a Sentry Message._\n\nIn Sentry, under 'Context -> Application State', only the `announcer` store state is given. (with updates from the state transformer)\n\n_Test 3: Same as Test 2, but reverses the order in which the two stores are modified._\n\nIn Sentry, under 'Context -> Application State', only the `counter` store state is given. (with updates from the state transformer)\n\n**Actual 2: StateTransformer Input**\n\nState Transformer is called for each store change, but the state input object only hold the state of the modified store. That means you have to 'figure out' which store was updated by checking the structure of the state object to know which store you are dealing with.","author":{"url":"https://github.com/Parakoos","@type":"Person","name":"Parakoos"},"datePublished":"2025-01-30T09:59:27Z","url":"https://github.com/getsentry/sentry-javascript/issues/15232"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:727b9e44-9de1-b6ee-e98b-45f11addb781 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ADEA:49A58:3CD388:51F2E3:6B043882 |
| html-safe-nonce | a8fbd0932df96212707fc5e3833f2d10bcbe0525676c27827a0ca14df847fa60 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBREVBOjQ5QTU4OjNDRDM4ODo1MUYyRTM6NkIwNDM4ODIiLCJ2aXNpdG9yX2lkIjoiNDIzMjk5NTExNTg5NzIwNjkxNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1a5f04996d50abb426d258fa9c198e195a329c38279658659da3e128cd8ac6fd |
| hovercard-subject-tag | issue:2820382403 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/15232/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4465172d53515ddef1311eb7b2151df4a4b03d191fe8eb89f286d6bc5f540b2f/getsentry/sentry-javascript/issues/15232 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4465172d53515ddef1311eb7b2151df4a4b03d191fe8eb89f286d6bc5f540b2f/getsentry/sentry-javascript/issues/15232 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Parakoos |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width