Skip to content

Sample Xamarin app using Redux.NET with a LiteDb database

Notifications You must be signed in to change notification settings

phdesign/TodoRedux

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Sample Xamarin app using Redux.NET with a LiteDb database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages