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

StoreChunk with nested actions #63

Closed
skydever opened this issue Jan 11, 2022 · 0 comments
Closed

StoreChunk with nested actions #63

skydever opened this issue Jan 11, 2022 · 0 comments

Comments

@skydever
Copy link
Contributor

Hi there!

I recently switched to the new @StoreChunk decorator and it is really awesome 👍

but I get the following error when all actions (createDuck()) are nested under a myActions property:

[ngrx-ducks] StoreFacade: At least one Duck is required to build a reducer function.
Please use either createDuck or createMutableDuck.

like this:

@StoreChunk({
  feature: 'my-feature',
  defaults: initialState
})
export class MyFacade {
  myActions = {
    action1: createDuck('MyAction', ...)
  }
}

We have some facades where we group actions like this, and if there is no action left on the main level we get this error.

Thank you!

@skydever skydever mentioned this issue Jan 11, 2022
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

2 participants