Sample Xamarin app using Redux.NET with a LiteDb database
C#
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Droid
Screenshots
TodoRedux
iOS
.gitignore
Metadata.xml
README.md
TodoRedux.sln

README.md

TodoRedux

This is a sample Xamarin app demonstrating how to use Redux.NET Middleware with a LiteDb database to store and restore state.

This is the supporting code for the blog series on Advanced Xamarin in Redux, available here:

This sample was written in Visual Studio for Mac, it seems to work in Visual Studio 2017 for PC, but there's still some differences in the tooling support for .NET Standard and csproj-based NuGet dependencies.

ActionCreators

The ActionCreators in this project are very basic, they just create and return a single Action, but they lay the foundations for doing async (e.g. API) calls as discussed in the [first blog post](Advanced Redux in Xamarin Part 1: Action Creators).

Middleware

The DatabaseMiddleware class demonstrates how to intercept Actions to store the current application state in a local database, then reload that state on application startup. See the third blog post for more on this.

MVVM

This sample uses a very vanilla implementation of the MVVM pattern, simply newing up the ViewModel in the Page constructor and using Fody.PropertyChanged to automatically wire up the INotifyPropertyChanged events.