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

Add state traits via example Checkbox component #2

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

Conversation

iamnbutler
Copy link
Owner

WIP

@iamnbutler
Copy link
Owner Author

@maxdeviant Any thoughts on the callbacks in the state traits?

I think including them there means they will be required – I don't know if there is a pattern we can use that makes it so that each individual callback may be implemented, but doesn't have to. Do they need to be separated out into their own traits?

@iamnbutler
Copy link
Owner Author

iamnbutler commented Jan 28, 2024

Also any thoughts on the naming pattern?

  • {state} - returns the current {state}
  • set_{state - sets the {state}
  • on_{some_action} - {some_action} callback

Also let me know if I'm using callback incorrectly 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant