Error using redux saga, take(patternOrChannel): argument 8 is not valid channel or a valid pattern

10,903

I found what was the error, the problem was the definition of ActionType enum. It was without assigning an string value for each action.

export const enum ActionType {

// Projects
SEARCH_PROJECT,
SEARCH_PROJECTS_COMPLETED,
SEARCH_PROJECTS_ERROR,

}

This fixed the problem:

export const enum ActionType {

// Projects
SEARCH_PROJECTS= '@@projects/SEARCH_PROJECTS',
SEARCH_PROJECTS_COMPLETED= '@@projects/SEARCH_PROJECTS_COMPLETED',
SEARCH_PROJECTS_ERROR= '@@projects/SEARCH_PROJECTS_ERROR',

}
Share:
10,903

Related videos on Youtube

ocuenca
Author by

ocuenca

Master's Degree in Computer Science. Mainly interested in .NET technologies like Azure, ASP.NET, Entity Framework, LINQ, Concurrent Programming, Web Services applications, and NoSql DBs.

Updated on June 04, 2022

Comments