From 4d0d9b2982da566f9aca6b60b81c635cbcb96b31 Mon Sep 17 00:00:00 2001 From: Mislav Domlija <76250875+domlija@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:54:25 +0100 Subject: [PATCH] Update schematics.md (#2271) --- docs/concepts/store/schematics.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/concepts/store/schematics.md b/docs/concepts/store/schematics.md index d0666be59..6bbf34108 100644 --- a/docs/concepts/store/schematics.md +++ b/docs/concepts/store/schematics.md @@ -24,6 +24,8 @@ ng generate @ngxs/store:store --name NAME_OF_YOUR_STORE > When working with multiple projects within a workspace, you can explicitly specify the `project` where you want to install the **store**. The schematic will automatically detect whether the provided project is a standalone or not, and it will generate the necessary files accordingly. +> Be sure to update `provideStore` in `app.config.ts` if working with standalone project or `NgxsModule.forRoot([])` in `app.module.ts` if working with module based project. Without this, your app will not recognise your store and actions properly. + 🪄 **This command will**: - Generate a `{name}.actions.ts`