Cody Johnson
Cody Johnson
I hadn't ever given it much thought since that's how normal Fable elmish is run. > Maybe I can answer myself: is the ring buffer used to make sure the...
Currently all of the processing is done as a promise (inside an effect hook). Yeah it's worth doing some profiling to see if the data structure is slow and if...
> Basically my question would be, if the commands are just functions accepting a dispatch function, why do we need a structure at all instead of just firing those functions...
> Is it even used at all? I can't see any calls to `Push` in the code, only `Pull`. That... actually seems to be the case 😅.
Dang, I spent a while trying to work something out until I realized you can't use hardly anything outside of literals in attributes. > - Rely on React's default: swallow...
> Passing dispatch function As long as you use react components throughout the entire application just calling `let dispatch = React.useCallback dispatch` at the highest level component should do the...
I quite like that idea @zanaptak. Taking a quick look at how the `ReactComponentAttribute` is written I *think* it's possible to make it so that if you have a component...
Using `useEffect` over `useLayoutEffect` causes issues, I explicitly remember testing the two out. I can't remember what exactly the issue was that occurs when you swap them out though; I...
Great write up @MangelMaxime, you made a lot of good points. From what I've gathered the main takeaway of this is mostly issues with how the library is extended, and...
@theimowski that's great to hear, I use fantomas on my non-Fable projects. I'll have to give it another shot and see how it handles it.