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

notifications.filter is not a function #46

Closed
mhtydv93 opened this issue Jun 21, 2017 · 3 comments
Closed

notifications.filter is not a function #46

mhtydv93 opened this issue Jun 21, 2017 · 3 comments

Comments

@mhtydv93
Copy link

mhtydv93 commented Jun 21, 2017

Configuration

  • Operating system with version : Ubuntu 16.04
  • Browser with version : Chrome latest 59
  • Reapop version : 1.1.1
  • React version : 15.5.4
  • Redux version : 3.5.2
  • React-redux version : 4.4.5

Actual behavior

notifications.filter is not a function

Expected behavior

Run without errors.

Steps to reproduce the behavior

I just did the initial configuration and it throws this error.

I also went through the NotificationsSystem component in lib/components and the error is thrown at line numbers 65 and 79 (where notifcations.filter is called).

@LouisBarranqueiro
Copy link
Owner

Hi @mohit-github, could you please show me your code (reducers configuration, etcc.)

@Clafouti
Copy link

I'm late to the party but I might have an idea for this issue.

Be careful to provide:

var reducer = combineReducers({ // insert your reducers here notifications: notificationsReducer() )};
The important part is that notificationsReducer() is a function (I just did that mistake and got this error).

@LouisBarranqueiro
Copy link
Owner

LouisBarranqueiro commented Sep 12, 2017

I guess It's that yeah. Thanks @Clafouti

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

3 participants