Skip to content

Conversation

davepagurek
Copy link
Contributor

@davepagurek davepagurek commented Sep 19, 2025

In #8094 (comment) @limzykenneth noticed that the updates to global mode function binding were clashing with how FES parameter validation currently works: methods on global mode now cache the functions they're wrapping for efficiency, but they were caching them before FES got added.

This PR updates the ordering of events. Previously, global binding happened before all lifecycle events, and FES param validation gets added in presetup, so it was happening too late. Now, global binding happens after presetup.

Test sketch: https://editor.p5js.org/davepagurek/sketches/CmJLC_pO1

Let me know what you think @limzykenneth!

@davepagurek davepagurek changed the title Change when FES binds to functions for better interaction with global… Change when FES binds to functions for better interaction with global mmode Sep 19, 2025
@davepagurek
Copy link
Contributor Author

Closing this in favour of the approach in #8099!

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.

1 participant