Skip to content

Conversation

@KillerCodeMonkey
Copy link
Contributor


What is the current behavior?

timeouts are not cleaned up and may lead to unexpected behavior (especially in unit tests).

What is the new behavior?

Timeouts are cleaned on disconnect.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Testrunner is vitest + angular 20 and latest ionic version 8.x

- clean up setTimeout in disconnectedCallback
@KillerCodeMonkey KillerCodeMonkey requested a review from a team as a code owner December 9, 2025 14:41
@vercel
Copy link

vercel bot commented Dec 9, 2025

@KillerCodeMonkey is attempting to deploy a commit to the Ionic Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added the package: core @ionic/core package label Dec 9, 2025
@ShaneK
Copy link
Member

ShaneK commented Dec 9, 2025

Nice find, you'll need to clean up the build issue though, which in this case is stemming from the annoying typescript Timeout isn't a number issue.

@KillerCodeMonkey
Copy link
Contributor Author

Window as global is returning a number. Nodejs is returning a Timeout object as far as i know.

An clear timeout on window is accepting undefined|number.

So how do you type it in general?

@KillerCodeMonkey
Copy link
Contributor Author

closed in favor of #30851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

package: core @ionic/core package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants