skclusive

Results 50 comments of skclusive

i guess we can already achieve this expected behaviour using default parameters. ```jsx function useCounter(context) { const count = { value: 0 }; context.addEventListener("click", () => { count.value++; context.refresh(); });...

> Generator functions (currently) have no arrow function equivalent. Insofar as you must necessarily use the old function syntax for generators, I see no harm in using this. yes. there...

Also regarding context sharing, would you not encourage following hooks pattern? unlike react, hooks definitions are not re-created every time. i see that as biggest advantages of Crank.js. ```jsx function...

hi. thanks for trying out state tree. yes. it is possible to define the above nested structure with actions specific to node types. the nesting can go any level. i...

glad you got the answers yourself :-) someday the verbosity could be avoided using C# code generator. i have been using it with pretty complex normalised data structure for my...

you are almost there. we have to only map the snapshot types. not the observable types. as below. https://github.com/skclusive/Skclusive.Blazor.Samples/blob/master/Skclusive.Blazor.FlightFinder/FlightFinder.State/Extension/FlightFinderExtension.cs#L17 ```cs services.TryAddJsonTypeConverter(); services.TryAddJsonTypeConverter(); services.TryAddJsonTypeConverter(); ``` can you try the above and...

btw i guess you are using the latest version 5.1.2.

oh. this one. i used to get this error. then i fixed the definition. could not recollect now. will try the same structure and update you.

no. but i just created a new branch with related changes for this issue. https://github.com/skclusive/Skclusive.Blazor.Samples/tree/Issue13 and this commit https://github.com/skclusive/Skclusive.Blazor.Samples/commit/e6dd2890e8781ff6bb05062f29f997e995ce2e64 i am not able to reproduce the issue. i could time...

I guess it is not straight forward. I will have to try with enumeration and update you.