Jordan Marr

Results 192 comments of Jordan Marr

I wrote a blog post tutorial that creates a todo with update using Fable.Remoting + Fable.React + SQLProvider. Does this help? https://jordanmarr.github.io/fsharp/safe-stack-ssdt-starter/

There should be no need to mix with React. You should not be calling `ChangePage ListCatFacts |> dispatch ` in your `click` event handler. That should happen when initializing the...

Sure, just remove the plugin in this file (line 36): https://github.com/JordanMarr/fable-lit-fullstack-template/blob/main/Template/WebLit/vite.config.js

Actually it will be much easier to initialize Grapnel router using `Hook.useEffectOnce` (even if you are using Elmish): I have updated [App.fs](https://github.com/JordanMarr/fable-lit-fullstack-template/blob/main/Template/WebLit/src/App.fs) to use the `Hook.useElmish` in conjunction with `Hook.useEffectOnce`....

I would just wrap the parent dispatcher in a function and pass it to the child as a command. Would that work for your scenario?

It sounds like you have two options: ## 1) Componentized `Hook.useElmish` Your parent subscribes and updates its own model with latest message. Then the child component is passed the updated...

Since there is not currently a `useContext` hook, I wonder if you could do something as simple as storing the shared context in a mutable static binding and in your...

> Do you have a sample how to do a quick one with ``? Do I have to define all Msg if I go that route? I am aware of...

No need to specify form action/method since we will be handling everything ourselves via Fable.Remoting. You could use a regular button click, but better to use the conventional `form` `@submit`...