This release provides improved support for asynchronous execution within a view model and allow the use of methods to express view model commands.
FeaturesOnCreatedAsync
virtual method in BaseVM
to allow asynchronous view model initialization (#110).Example:
public class MyViewModel: BaseVM { ... public override async Task OnCreatedAsync() { MyPropertyValue = await SomeAsyncMethod(); } }
Action
property.Example:
vm.$dispatch({Submit: {/*form data*/}});
public class MyForm : BaseVM { // OLD: public Action<FormData> Submit { get => formData => SubmitForm(formData); } // NEW: public void Submit(FormData formData) => SubmitForm(formData); }
PushUpdates
.Example:
vm.$dispatch({Submit: {/*form data*/}});
public class MyAsyncForm : BaseVM { public string Message { get => Get<string>(); set => Set(); } public async Task Submit(FormData formData) { await SubmitFormAsync(formData); Message = "Submitted"; } }
// OLD: public string Employees_itemKey => nameof(EmployeeInfo.Id); public IEnumerable<EmployeeInfo> Employees { get; private set; } // NEW: [ItemKey(nameof(EmployeeInfo.Id)] public IEnumerable<EmployeeInfo> Employees { get; private set; }Bug Fixes
The library for ASP.NET Framework "DotNetify.SignalR.Owin" is no longer maintained, with v3.6.1 being the last published version. The source code was moved out the main repo and archived here. However, private support is possible with sponsorship.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4