-
Notifications
You must be signed in to change notification settings - Fork 27
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
rfc: Introduce 'handlers' and 'transitions' modules #51
Comments
Also, maybe we could lean into the lego terminology a bit more for the structure of the codebase? Each 'module' (actions, stores etc) could be called |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! Came across this package recently and loved the idea. I have a bunch of actions/stores/transitions etc for Svelte I've written over the years and I think this is the perfect place for them!
So, what's the proposal?
I propose we add a new
handlers
andtransitions
module(s) to the codebase. For example, we can provide easy and intuitive handlers for common use cases, such as keyboard shortcuts!Here is an example I've written for a
shortcutHandler
function:and we can consume it like so:
Same thing applies for transitions, for example - here is a "growShrinkTransition":
and so on.
Let me know what everybody thinks! I also have some ideas for refactoring the frontend (for example, we really should be loading the stores, actions etc in the layout's load function instead of subsequently loading them again in a sub-page's load function and only using the loaded directories files to get the length of the total utilities etc)
The text was updated successfully, but these errors were encountered: