Skip to content

Conversation

@TFSMads
Copy link
Contributor

@TFSMads TFSMads commented Oct 22, 2025

Problem

functions appearing before on unload event is unloaded before event is called.

Solution

When unloading a script unload event is moved to front of list so that it is triggered before unloading of functions.

Testing Completed

I have tested it on version 1.21.10.

Supporting Information


Completes: #8233
Related: none

@TFSMads TFSMads requested review from a team as code owners October 22, 2025 15:09
@TFSMads TFSMads requested review from APickledWalrus and Absolutionism and removed request for a team October 22, 2025 15:09
@skriptlang-automation skriptlang-automation bot added the needs reviews A PR that needs additional reviews label Oct 22, 2025
Copy link
Member

@APickledWalrus APickledWalrus left a comment

Choose a reason for hiding this comment

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

Rather than hardcoding this comparator in, I think an alternative option would be to unload based on Structure priority (in reverse order to loading)

@skriptlang-automation skriptlang-automation bot removed the needs reviews A PR that needs additional reviews label Oct 23, 2025
@sovdeeth sovdeeth added the bug An issue that needs to be fixed. Alternatively, a PR fixing an issue. label Oct 23, 2025
@sovdeeth sovdeeth linked an issue Oct 23, 2025 that may be closed by this pull request
1 task
@sovdeeth sovdeeth moved this to In Review in 2.13 Releases Oct 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug An issue that needs to be fixed. Alternatively, a PR fixing an issue.

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

on unload is called after functions are unloaded

4 participants