Simple, lightweight, yet powerful way to build real-time web apps.
OTHER License
Bot releases are hidden (Show)
import "dotnetify/react/v18-compatibility";
.Published by dsuryd over 2 years ago
Example:
appBuilder.MapVM("HelloWorld", () => new
{
Greetings = "Hello World",
ServerTime = Observable.Interval(TimeSpan.FromSeconds(1).Select(_ => DateTime.Now)
});
IDotNetifyConfiguration
property CamelCaseSerialization
for applying camel case naming when serializing view models.Published by dsuryd about 3 years ago
@aspnet/signalr
to @microsoft/signalr
.Published by dsuryd over 3 years ago
setState
to the object returned by useConnect
.useConnect
optional.Published by dsuryd over 3 years ago
ObjectDisposedException
to get thrown from the view model factory method (#273).Data
property value of the context object that is passed to middlewares and filters is no longer fixed to the JObject
type but depends on the type of SignalR serialization that is used (System.Text.Json, Newtonsoft.Json, or MessagePack).System.Reactive
dependency, an upgrade to v5.0 is required.Published by dsuryd almost 4 years ago
NuGet symbol packages (.snupkg) are included to provide better debugging experience.
Published by dsuryd over 4 years ago
This release provides improved support for asynchronous execution within a view model and allow the use of methods to express view model commands.
OnCreatedAsync
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; }
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.
Published by dsuryd over 4 years ago
This release provides better Typescript support by migrating the majority of code to Typescript. Some type names have been renamed and will cause breaking changes if you're using type definitions from previous versions.
Published by dsuryd over 4 years ago
This release provides the much-needed enhancements to the React router, i.e. support for lazy-loading through integration with Webpack code splitting, 404 error handling, and server-side rendering.
Doc: https://dotnetify.net/core/api/routing
onRouteEnter
to return a promise object and defer the routing until the promise (which should be used to dynamically import the view components) is resolved.onRouteEnter
in the connect
's options argument.enableSsr
(client-side) and useSsr
(server-side) APIs to support server-side rendering.dotnetify.react.router.notFound404Url = null
;useConnect
to merge the existing state with the new state instead of replacing it (#237).JObject.Parse
exception in Update_VM
when using System.Text.Json (#239).Published by dsuryd over 4 years ago
Published by dsuryd almost 5 years ago
Published by dsuryd almost 5 years ago
Published by dsuryd about 5 years ago
This release provides a better hub proxy class abstraction, which allows important improvements to the library: multi-hub support (for realizing micro-frontend pattern) and capacity for different hub proxy implementations (e.g. local/client-side view model, communication using web API instead of SignalR).
useConnect
hook.AddMemoryCache()
if the service isn't registered.Published by dsuryd over 5 years ago
This release adds the following features:
VMSerializer.SerializerSettings
(#195).Bug fix:
Published by dsuryd almost 6 years ago
This release provides the following new features:
Other updates:
Published by dsuryd almost 6 years ago
This release provides client-side library that integrates with Vue.js framework (#49).
Published by dsuryd about 6 years ago
This release provides the following new features:
Published by dsuryd about 6 years ago
Updated SignalR .NET Core client to v1.0.3 to fix issue #114.
Published by dsuryd over 6 years ago
This is an official release of dotNetify for ASP.NET Core.
Published by dsuryd over 6 years ago
This release provides the following new features:
Other updates: