wcravens / squirrel_squibble

0 stars 0 forks source link

Redux to PouchDB integration #33

Open wcravens opened 2 years ago

wcravens commented 2 years ago

[ ] Wire the Redux toolkit tutorial up to PouchDB [ ] If necessary, explore the various redux-pouchdb libraries if we need more/advanced functionality that requires more build time.

wcravens commented 2 years ago

Only need to replicate the functionality found here:

Start with Posts as it is the more functional.

wcravens@luna features % git grep 'client\.'
notifications/notificationsSlice.js:    const response  = await client.get( `/fakeApi/notifications?since=${latestTimestamp}` )
posts/postsSlice.js:  const response = await client.get('/fakeApi/posts')
posts/postsSlice.js:    const response = await client.post( '/fakeApi/posts', initialPost )
users/usersSlice.js:  const response = await client.get( '/fakeApi/users' )