SwiTool

Results 33 comments of SwiTool

Is it still under development ? I'm having trouble with require also.. I'm using Webpack. error: `Uncaught ReferenceError: Lang is not defined` at `Lang = new Lang()`

@rmariuzzo Hey, take your time. Hope you are okay with those events .. :)

In fact I can reproduce this too. The first signal sent makes the good display (the first one in fact), but when I change other datas (and call `this.NotifySignal("xxxChanged")` it...

Wow okay I got something. I think we're misusing the library. Remember my line : ```csharp this.ActivateSignal("accountsChanged"); // it is the first, it worked ``` If I remove it, and...

For your example, try to call : ```csharp this.ActivateSignal("projectsChanged"); ``` in your `ViewModels/FeedViewModel.cs` instead of calling the project's NotifySignal. I'll make more tests with my example to understand and will...

I think the problem is (in your example) that you have NotifySignal in a class that is already instancied and is already itself having the NotifySignal attribute. I'm doing the...

> I haven't looked into this issue, but I use .NET models, async computation, and lists in my app successfully: https://github.com/health-validator/Hammer so maybe look into there for differences too. @vadi2...

So when you update a single property in a class containing dozens of it, you must refresh the "master" class via the `ActivateSignal("propertyNameOfClass")` ?

Alright, but why it doesn't update with the `Task.Run` method then ? ```csharp Task.Run(() => { System.Threading.Thread.Sleep(1000); System.Console.WriteLine($"Changed status"); _accounts[0].AccountState = Logic.Enums.AccountState.CONNECT; this.ActivateSignal("accountsChanged"); }); ``` ![image](https://user-images.githubusercontent.com/8834915/65764800-c0227000-e126-11e9-82c8-b3053bd92a4f.png)

Okay so by navigating over the issues, I found @MaxMommersteeg repositories, the Chat and Todo projects are concrete usage examples. It would make sense to put the lights on them...