[PR #3152] [MERGED] fix(sveltekit): only dynamic import $app/environment once #4674

Closed
opened 2026-03-13 11:55:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3152
Author: @tehnrd
Created: 6/23/2025
Status: Merged
Merged: 6/24/2025
Merged by: @Bekacru

Base: mainHead: fix/sveltekit-mem-leak


📝 Commits (1)

  • affa502 fix(sveltekit): only dynamic import $app/environment once

📊 Changes

1 file changed (+13 additions, -5 deletions)

View changed files

📝 packages/better-auth/src/integrations/svelte-kit.ts (+13 -5)

📄 Description

Fixes https://github.com/better-auth/better-auth/issues/3150 memory leak issue.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3152 **Author:** [@tehnrd](https://github.com/tehnrd) **Created:** 6/23/2025 **Status:** ✅ Merged **Merged:** 6/24/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/sveltekit-mem-leak` --- ### 📝 Commits (1) - [`affa502`](https://github.com/better-auth/better-auth/commit/affa5026f2e2e03df3be17bd4452cea8fda53e40) fix(sveltekit): only dynamic import $app/environment once ### 📊 Changes **1 file changed** (+13 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/integrations/svelte-kit.ts` (+13 -5) </details> ### 📄 Description Fixes https://github.com/better-auth/better-auth/issues/3150 memory leak issue. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 11:55:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#4674