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

[REFRACTOR] Hooks recieve a single parameter #639

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Conversation

TungstnBallon
Copy link
Contributor

This PR changes the hook's signature to only receive one object with the previous parameter as properties. This has the following advantages:

  • Backwards compatibility: Adding new "parameters" at whatever position doesn't break existing code
  • It's easier to ignore unused "parameters".

Depends on #638, which is why I've marked this as a draft.

@TungstnBallon TungstnBallon self-assigned this Jan 21, 2025
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