-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
docs(example): add an example of using flash session #3043
docs(example): add an example of using flash session #3043
Conversation
Hi @michaeldebetaz, Welcome, and thank you for contributing to Remix! Before we consider your pull request, we ask that you sign our Contributor License Agreement (CLA). We require this only once. You may review the CLA and sign it by adding your name to contributors.yml. Once the CLA is signed, the If you have already signed the CLA and received this response in error, or if you have any questions, please contact us at [email protected]. Thanks! - The Remix team |
Thank you for signing the Contributor License Agreement. Let's get this merged! 🥳 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! I've just got a question.
<form method="dialog"> | ||
<button>Close</button> | ||
</form> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you help me understand this? I've never see method="dialog"
before. Is this just a part of the form spec I've never heard of before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks like there is https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form#attr-method 🤯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Holy smokes 🤯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for accepting my modest contribution 🙏 I went a bit overboard with the #useThePlatform thing 😋
I wanted to use the opportunity of my example to make other people learn surprising things on the way.
I wasn't sure about , as it isn't supported by Typescript yet (I had to import my own interface). But it's definitely nice to know a native way to create dialogs and modals without relying on Javascript.
In my case, I was more mind-blowned by color-scheme: dark light
which use the browser for applying native dark theme (if preferred) without any additionnal CSS 🤯
Should I add a section to explain my Easter eggs?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I almost asked you to remove that bit because we normally want to keep things as simple and focused as possible. I don't think we need to explain those things. Thanks though!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you then. I'll try to keep it more concise next time! I just didn't want to reproduce the exact same example as the one already in your docs 😋
I'll see where my current project takes me, I would love to contribute again 🔥
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool. Thanks 👍
Co-authored-by: Kent C. Dodds <[email protected]>
Co-authored-by: Kent C. Dodds <[email protected]>
Co-authored-by: Kent C. Dodds <[email protected]>
Co-authored-by: Kent C. Dodds <[email protected]>
Creating an example for session.flash() a bit more advanced than what is in the Remix Docs. For example, I added the use of the element and a strategy to dynamically style the flash message.
This is my very first PR. Let me know if I could improve some things for my next PRs.
Thanks a lot. Remix rox. You guys are legends 😉