John Susi
John Susi
Here is another approach using channels. ```cs var channel = Channel.CreateUnbounded(); using var connection = new StanConnectionFactory().CreateConnection("test-cluster", "test-client"); using var subscription = connection.Subscribe("topic", (sender, args) => { while (!channel.Writer.TryWrite(args.Message)); });...
Very good feedback. I did not know about the block bug. Agree on the event-handling. And it was completely unintentional ;-) I haven't looked at the generated code yet but...
This sounds like a good feature. We are seeing some app freezing on large renders. Nothing to serious though. ~~How would you handle a fresh render that occurs while doing...
Maybe it is better to use blocks for nesting. Then render is called consistently for any type of hierarchy. ``` ruby class A include Clearwater::Component def initialize(&children) @children = children...
I was trying out an idea where nested components needed to get information from a 'parent' higher up but passing down attributes was not an option. React has `context` for...
Interesting, I like the style of MasterDetail. Looks similar to 'pure components' in React. I was toying with an idea of a declarative router similar to what they are doing...
That looks good! I'll reopen and rename this issue so others can join in the discussion. I have a rough implementation going at https://github.com/johnsusi/clearwater-crossroads/ It handles the simple cases but...
I actually tried using the matcher from rails but I could not get it to work. About nesting, https://github.com/johnsusi/clearwater-crossroads/blob/master/spec/crossroads/match_spec.rb#L70 That should actually work in opal but fails when running specs...
Another idea i like is to be able to inject the path at render time ``` ruby def render router( '/foo/bar' ) { # the matcher would see '/foo/bar' now...
I think the reason we had problems with this is that we are running in electron (atom-shell) as a single-page application so we never hit a server on reload. I...