Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Close #27. Nanoid/non-secure for old ie #34

Merged
merged 1 commit into from
Nov 7, 2019
Merged

Close #27. Nanoid/non-secure for old ie #34

merged 1 commit into from
Nov 7, 2019

Conversation

kldkv
Copy link

@kldkv kldkv commented Nov 6, 2019

closes #27

import { createStore } from 'redux'
import { createSymbiote } from "redux-symbiote";

const initialState = 0;

const symbiotes = {
  INCREMENT: state => state + 1,
  DECREMENT: state => state - 1
};

const { actions, reducer } = createSymbiote(
  initialState,
  symbiotes
);

const store = createStore(reducer);

console.log(`Should be 0: ${store.getState()}`)
store.dispatch(actions.INCREMENT())
store.dispatch(actions.INCREMENT())
store.dispatch(actions.INCREMENT())
store.dispatch(actions.DECREMENT())
console.log(`Should be 2: ${store.getState()}`)

console.log(store, actions)

Скриншот 2019-11-06 21 11 49


IssueHunt Summary

Referenced issues

This pull request has been submitted to:


IssueHunt has been backed by the following sponsors. Become a sponsor

@ghost
Copy link

ghost commented Nov 6, 2019

DeepCode Report (#eecb47)

DeepCode analyzed this pull request.
There are no new issues.

@kldkv kldkv changed the title Close #27. Nanoid/non-secure for old ie Close https://github.com/sergeysova/redux-symbiote/issues/27. Nanoid/non-secure for old ie Nov 6, 2019
@kldkv kldkv changed the title Close https://github.com/sergeysova/redux-symbiote/issues/27. Nanoid/non-secure for old ie Close #27. Nanoid/non-secure for old ie Nov 6, 2019
@sergeysova sergeysova merged commit 42b70f8 into sergeysova:master Nov 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants