client/src/reducers/notesReducer.js
changeset 12 48ddaa42b810
parent 3 3b5d37d84cfe
child 29 4cfeabef7d5e
--- a/client/src/reducers/notesReducer.js	Wed May 31 17:28:12 2017 +0200
+++ b/client/src/reducers/notesReducer.js	Wed May 31 17:51:54 2017 +0200
@@ -1,8 +1,14 @@
 import Immutable from 'immutable';
+// import PouchDB from 'pouchdb';
 
 import * as types from '../constants/actionTypes';
 import noteRecord from '../store/noteRecord';
 
+// const db = new PouchDB('notes');
+
+// db.allDocs({ include_docs: true, descending: true }, function(err, doc) {
+//   console.log(doc.rows)
+// });
 
 export default (state = Immutable.List([]), action) => {
   switch (action.type) {