Zack this is such a great resource, together with all the other tailwind+alpine examples in your repo. Really nice.
It would be nice if there was a little more context as to why we need Spruce, but maybe it will become more clear as I dig in. :)
Thank you for your words, David.
About Spruce, I have it for this as I'd like the ability to invoke the toasts from anywhere. So, a global state management solution seemed like a good idea.
My understanding is this is a core part of Alpine 3. So maybe this and other examples you’ve made could see Spruce being phased out. 🤔☺️
Alpine 3 came out about 3 months after this post. But yeah, if I were to redo these now, I'd definitely go with core.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Zack this is such a great resource, together with all the other tailwind+alpine examples in your repo. Really nice.
It would be nice if there was a little more context as to why we need Spruce, but maybe it will become more clear as I dig in. :)
Thank you for your words, David.
About Spruce, I have it for this as I'd like the ability to invoke the toasts from anywhere. So, a global state management solution seemed like a good idea.
My understanding is this is a core part of Alpine 3. So maybe this and other examples you’ve made could see Spruce being phased out. 🤔☺️
Alpine 3 came out about 3 months after this post.
But yeah, if I were to redo these now, I'd definitely go with core.