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 missing code for full Elmish integration, fixes #601 #602

Merged
merged 2 commits into from
Jun 17, 2024

Conversation

pkese
Copy link
Contributor

@pkese pkese commented May 10, 2024

No description provided.

@@ -7,6 +7,8 @@ module App

open Feliz
open Elmish
open Elmish.HMR
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

open Elmish.HMR needs to be the last open instruction in order to be able to shadow any supported API

open Elmish.React
open Elmish.HMR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks ❤️, I changed the code.
Btw, this is exactly what I meant when I said it would be helpful to include the missing bits. Having to figure out details like this on your own (I didn't know why HMR refused to work) makes life horrible to novices, so providing an example helps a lot.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, the things is in this case you should refer to Elmish documentation as it is more complete when using Elmish itself.

But I agree that if Feliz wants to showcase usage inside of Elmish a more complete documentation like you did or link / encouragement to go check Elmish itself is an improvement.

@Zaid-Ajaj Zaid-Ajaj merged commit 9f51a5a into Zaid-Ajaj:gh-pages Jun 17, 2024
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.

3 participants