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: Fix infinite render loops for values from DB #522

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

BYK
Copy link
Member

@BYK BYK commented Sep 12, 2024

This pach overhauls the initial rerender with better use of hooks, namely useCallback but also using intial state creation function to fix the infinite render loop reported in #521.

Fixes #521.

This pach overhauls the initial rerender with better use of hooks, namely `useCallback` but also using intial state creation function to fix the infinite render loop reported in #521.

Fixes #521.
@BYK BYK requested a review from Lms24 September 12, 2024 12:01
Copy link

vercel bot commented Sep 12, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
spotlightjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 12, 2024 0:03am

@BYK BYK merged commit df9cd95 into main Sep 12, 2024
13 checks passed
@BYK BYK deleted the byk/fix/infinite-render-loops branch September 12, 2024 12:07
BYK pushed a commit that referenced this pull request Sep 12, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and publish to npm
yourself or [setup this action to publish
automatically](https://github.com/changesets/action#with-publishing). If
you're not ready to do a release yet, that's fine, whenever you add more
changesets to main, this PR will be updated.


# Releases
## @spotlightjs/astro@2.1.9

### Patch Changes

- Fixed infinite render loops and optimized rerenders
([#522](#522))

-   Updated dependencies

\[[`df9cd954323648d8c22e61643520a1642b8884ca`](df9cd95)]:
    -   @spotlightjs/spotlight@2.4.1

## @spotlightjs/electron@1.1.9

### Patch Changes

- Fixed infinite render loops and optimized rerenders
([#522](#522))

-   Updated dependencies

\[[`df9cd954323648d8c22e61643520a1642b8884ca`](df9cd95)]:
    -   @spotlightjs/overlay@2.5.1

## @spotlightjs/overlay@2.5.1

### Patch Changes

- Fixed infinite render loops and optimized rerenders
([#522](#522))

## @spotlightjs/spotlight@2.4.1

### Patch Changes

- Fixed infinite render loops and optimized rerenders
([#522](#522))

-   Updated dependencies

\[[`df9cd954323648d8c22e61643520a1642b8884ca`](df9cd95)]:
    -   @spotlightjs/overlay@2.5.1

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spotlight overlay crashing due to browser being out of memory
1 participant