Skip to content

Conversation

stephencelis
Copy link
Member

That is: don't.

Because statics are lazy, they will cache the current dependency values when first accessed, leading to unexpected behavior.

@stephencelis stephencelis requested a review from mbrandonw May 31, 2023 19:51
@acosmicflamingo
Copy link
Contributor

I wonder who found this out the hard way 😂

@stephencelis stephencelis merged commit 0216cee into main Jun 1, 2023
@stephencelis stephencelis deleted the static-notice branch June 1, 2023 17:14
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.

3 participants