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

[4.x] Clean up some event handlers #9500

Merged
merged 1 commit into from Feb 9, 2024
Merged

Conversation

jasonvarga
Copy link
Member

This PR gets rid of some event handlers when the Vue components are destroyed.

This might help towards #9351

@jasonvarga
Copy link
Member Author

@DanielDarrenJones Do you think you could try this out? Since its just JS changes you'll need the assets.

The build directory should go to public/vendor/statamic/cp/build

build.zip

@DanielDarrenJones
Copy link
Contributor

DanielDarrenJones commented Feb 9, 2024

@jasonvarga This does seem to make a noticeable difference, I can see the memory dropping back down now in the profiler when the asset browser is closed (by actually closing, or selecting), whereas before this was sticking up high.

@jasonvarga
Copy link
Member Author

Thanks for testing.

@jasonvarga jasonvarga marked this pull request as ready for review February 9, 2024 19:00
@jasonvarga jasonvarga merged commit e100f68 into 4.x Feb 9, 2024
34 checks passed
@jasonvarga jasonvarga deleted the clean-up-event-handlers branch February 9, 2024 19:01
JohnathonKoster pushed a commit to JohnathonKoster/cms that referenced this pull request Feb 18, 2024
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.

None yet

2 participants