Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge branch 'release/2.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
gallayl committed Jul 5, 2017
2 parents 7265269 + 30c70a1 commit 4900dcc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
14 changes: 9 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=flat)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat)](http://commitizen.github.io/cz-cli/)
[![Greenkeeper badge](https://badges.greenkeeper.io/SenseNet/sn-redux.svg)](https://greenkeeper.io/)
<<<<<<< HEAD
=======

>>>>>>> master
sn-redux is a convention driven way of building Sense/Net applications using Redux. It contains all the action types, actions and reducers for [built-in Sense/Net Actions

sn-redux is a convention driven way of building sensenet ECM applications using Redux. It contains all the action types, actions and reducers for [built-in sensenet Actions
and Functions](http://wiki.sensenet.com/Built-in_OData_actions_and_functions).

sn-redux gives you a standard set of:
Expand All @@ -22,7 +26,7 @@ sn-redux gives you a standard set of:
* reducers: for the action types above e.g. updateContentSuccess
* epics: for streams of actions that are related to the same process e.g. createContentEpic

## Installation on an existing Sense/Net portal
## Installation on an existing sensenet ECM portal

Get the latest stable version with npm

Expand Down Expand Up @@ -53,7 +57,7 @@ To install the latest stable version
npm install --save sn-redux
```

Create your sense NET portal Repository to use. You can configure your Store to use this repository, when calling Store.ConfigureStore
Create your sensenet ECM portal Repository to use. You can configure your Store to use this repository, when calling Store.ConfigureStore

```ts
import { Repository } from 'sn-client-js';
Expand All @@ -73,9 +77,9 @@ const store = Store.configureStore(

```

To enable your external app to send request against your Sense/Net portal change your ```Portal.settings```. For further information about cross-origin resource sharing in Sense/Net check [this](http://wiki.sensenet.com/Cross-origin_resource_sharing#Origin_check) article.
To enable your external app to send request against your sensenet ECM portal change your ```Portal.settings```. For further information about cross-origin resource sharing in Sense/Net check [this](http://wiki.sensenet.com/Cross-origin_resource_sharing#Origin_check) article.

Check your Sense/Net portal's web.config and if the ```ODataServiceToken``` is set, you can pass to your Repository as a config value on client side.
Check your sensenet ECM portal's web.config and if the ```ODataServiceToken``` is set, you can pass to your Repository as a config value on client side.

```ts
let repository = new Repository.SnRepository({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sn-redux",
"version": "2.0.0-RC.2",
"version": "2.0.0",
"description": "A set of redux actions, reducers and redux-ovbservable epics for Sense/Net ECM",
"main": "dist/src/sn-redux.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export module Store {
}
const loggerMiddleware = createLogger();
middlewareArray.push(loggerMiddleware);
if (typeof persistedState !== 'undefined') {
if (persistedState && typeof persistedState !== 'undefined') {
return createStore(
rootReducer,
persistedState,
Expand Down

0 comments on commit 4900dcc

Please sign in to comment.