Skip to content
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

fix(session-replay): id increment #892

Merged
merged 1 commit into from
Nov 12, 2024
Merged

fix(session-replay): id increment #892

merged 1 commit into from
Nov 12, 2024

Conversation

Joozty
Copy link
Member

@Joozty Joozty commented Nov 12, 2024

Description

Fix bug introduced by the eslint update in #879. Previously, the ++ operator was used, which increments the value after the variable is accessed. We switched to += and moved it before the variable is used, causing issues with the indices.

Type of change

Delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested?

Delete options that are not relevant.

  • Manual testing

const eventI = eventCounter
eventCounter += 1
Copy link
Member Author

@Joozty Joozty Nov 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

Fix bug introduced by the eslint update in #879. Previously, the `++` operator was used, which increments the value after the variable is accessed. We switched to `+=` and moved it before the variable is used, causing issues with the indices.
@@ -4,7 +4,7 @@ This is a [Next.js](https://nextjs.org/) project bootstrapped using [`create-nex

## Instrumenting with Splunk RUM using NPM installation method

Next.js uses [static generation](https://nextjs.org/docs/basic-features/pages#pre-rendering) by default to generate the output HTML for most pages. As static generation is done using the node.js runtime, it isn't compatible with RUM. Check that RUM is only imported and activated in the browser environment.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The link return 404 and link checker in CI fails. I decided to remove it. This example needs to remove anyway.

@Joozty Joozty marked this pull request as ready for review November 12, 2024 16:54
@Joozty Joozty requested review from a team as code owners November 12, 2024 16:54
@Joozty Joozty self-assigned this Nov 12, 2024
@Joozty Joozty merged commit 314e922 into main Nov 12, 2024
6 checks passed
@Joozty Joozty deleted the fix/increment branch November 12, 2024 17:00
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants