Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build after wrapping root reducer with optimistic #42

Open
drewandre opened this issue Sep 20, 2018 · 0 comments
Open

Unable to build after wrapping root reducer with optimistic #42

drewandre opened this issue Sep 20, 2018 · 0 comments

Comments

@drewandre
Copy link

Following the readme instructions, I receive the error "Unhandled JS Exception: Unexpected token u in JSON at position 0" after wrapping my root reducer with optimistic like so:

import { optimistic } from 'redux-optimistic-ui'
...
const rootReducer = optimistic(combineReducers({
  session,
  notices,
  feed,
  user,
  jobSites,
  upload,
  post
}))

My JS bundle works fine but react-native (running version 0.57) will not launch because of this. Is there a step I'm missing, or am I misunderstanding how to "feed it my reducer"?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant