Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Jun 27 21:33
    rfprod synchronize #1840
  • Jun 27 21:32
    rfprod synchronize #1846
  • Jun 26 22:13
    renovate[bot] synchronize #1648
  • Jun 26 22:13

    renovate[bot] on all

    chore(deps): update all depende… (compare)

  • Jun 26 19:48

    markwhitfeld on master

    build: remove failing script in… (compare)

  • Jun 25 21:48
    renovate[bot] synchronize #1648
  • Jun 25 21:48

    renovate[bot] on all

    chore(deps): update all depende… (compare)

  • Jun 23 16:22
    ElecTreeFrying closed #1872
  • Jun 23 15:47
    arturovt synchronize #1870
  • Jun 23 15:47

    arturovt on warn-unhandled-actions

    feat(store): warn on unhandled … (compare)

  • Jun 23 13:47
    ElecTreeFrying opened #1872
  • Jun 23 13:42
    arturovt synchronize #1871
  • Jun 23 13:42

    arturovt on revert-select-decorator-changes

    fix: cure hello-world-12-ivy in… (compare)

  • Jun 23 13:38
    arturovt edited #1871
  • Jun 23 13:36
    arturovt synchronize #1871
  • Jun 23 13:36

    arturovt on revert-select-decorator-changes

    fix: cure hello-world-14-ivy in… (compare)

  • Jun 23 13:34
    arturovt synchronize #1871
  • Jun 23 13:34

    arturovt on revert-select-decorator-changes

    fix: cure hello-world-13-ivy in… (compare)

  • Jun 23 13:32
    arturovt synchronize #1871
  • Jun 23 13:32

    arturovt on revert-select-decorator-changes

    fix: cure hello-world-12-ivy in… (compare)

Mark Whitfeld
@markwhitfeld
Hi everyone. I would really like some thoughts and perspective on my proposal in issue #192 regarding Extensibility for Action handlers. If you get a moment to read and comment I would really appreciate it.
Danny Blue
@deebloo
@xavierclotet can you share an example of what is breaking?
we need to know what is actually breaking for you.
you can open an issue but provide a reproducible example so we can help troubleshoot
Danny Blue
@deebloo
if it is just the name of the actions in a minified bundle that is working as expected
Trevor Hackett
@yarrgh
@xavierclotet have you tried adding the static type property to your actions like I mentioned before?
xavic
@xavierclotet
nope, ai dont mind the action name in devtools, the real problem es the state behavior
Trevor Hackett
@yarrgh
I'm curious if it is the state properties being minimized differently. Are you using an interface for your state? If you are, are you also using it in your actions methods
xavic
@xavierclotet
im using an empty state with 2 substates

export class DocumentationStateModel {
}

@State<DocumentationStateModel>({
name: 'documentation',
children: [
DocumentsState, ProcessesState
]
})

and ie DocumensState is:

export class DocumentsStateModel {
currentDocument: string | null;
error: string | string[];
loading: boolean;
document: Document[];
}

@State<DocumentsStateModel>({
name: 'document',
defaults: {
currentDocument: null,
error: '',
loading: false,
document: []
}
})

Trevor Hackett
@yarrgh
What about in your action methods? Are you using the typings when deconstructing StateContext?
Something like this:
@Action(SomeAction)
someAction({ setState, getState} : StateContext<DocumentsStateModel>, { payload}) {
  // ...
}
I'm just trying to figure out what we're doing differently
Angel A. Núñez
@mailok
@amcdnl hi!! I migrated TodoMVC project to @ngxs, and I really liked the experience. I would like if you are interested in adding it to the proyects resources (https://ngxs.gitbooks.io/ngxs/community/projects.html). This is the proyect: https://github.com/mailok/todo-ngxs and demo: https://mailok.github.io/
Jay
@Web2Integrators
is there example of using ngxs with firestore
Leon Radley
@leon
@Web2Integrators Not yet, but we are currently working on a couple of demo apps.
I’ll be looking into creating a firebase app with auth and firestore.
I’ll post it here once I’m done
Jay
@Web2Integrators
thanks @leon .Looking forward to it.I can also participate in the firebase demo app..
Jacques Lareau
@jacqueslareau
Hi there! The project looks very cool. Before I start migrating, can I have both ngrx/store and ngxs stores on the same app? Are they sharing the same store and events or they have their own store instance?
Austin
@amcdnl
You can but there is no built in way for them to share the same store
i dont’ see why it wouldn’t be possible tho
Austin
@amcdnl

Jacques Lareau
@jacqueslareau
@amcdnl ok thanks. well I actually don't want them to share the same store during the migration. so thanks for the anwser!
Austin
@amcdnl
———

WE ARE MOVING TO SLACK! JOIN VIA https://now-examples-slackin-eqzjxuxoem.now.sh

@/all FYI ^^^
Daniel Netzer
@DanielNetzer
Morning/Evening all, does NGXS compatible with angular 6?
Gary Haddon
@ghaddon
@DanielNetzer I just built a test environment with Angular 6 and the samples with NGXS work.
Max
@maxkarpovets

Hello everyone.

I want to use ngxs for state management in my Angular 6 application.

But I am not sure if it is mature for big projects.

I can not find any articles about Difference in performance between ngrx and ngxs.
Can someone provide some info about it?

Mark Whitfeld
@markwhitfeld
Please note previous announcement:
WE ARE MOVING TO SLACK! JOIN VIA https://now-examples-slackin-eqzjxuxoem.now.sh
Mateus Carniatto
@Carniatto
@all Hello guys I was wondering if there is any way to do the default state based in an async response
Mark Whitfeld
@markwhitfeld
@Carniatto Please note previous announcement:
WE ARE MOVING TO SLACK! JOIN VIA https://now-examples-slackin-eqzjxuxoem.now.sh
We have a very active channel there
SeeeD
@SeeeD
Hey everyone! How can I build the ngxs library by my own?
Younes
@chaouiy
@chaouiy
How to name 2 action class when they do the same thing but come from multiple sources ?
it's ok about types [Page 1] DoSomething, [Page 2] DoSomething, but class names we can't have two class with same name Do Something``
Ishanuda
@ishanuda
A happy, prosperous, healthy and successful new year for @All
Edouard Coissy
@geekrumper
Good Morning guys.... just updated to ng9 and therefore also ngxs to 3.6.2... can anyone point me to a direction when facing following error "Can't resolve all parameters for AppState: (?, ?, ?, ?, ?)"? I looked at the changelog for ngxs and found nothing about breaking changes. My app was working properly with ng8...
vaibhavjainongraph
@vaibhavjainongraph

Hi Guys,
I have some queries regarding NGXS implementation.
I have one object like this :
{
id : 1,
name : test,
language :
[
{ id : 1, name : "English" }, { id : 2, name : "French" }
],
task : [
{ id: 1, name: 'drawing', id: 2, name: 'cooking'}
]
}

I have parent component and its children components are using this object to display data like language component is displaying the languages and faciliates the CRUD operation on language. Same for task.

So how can I implement NGXS for this use case.
I have tried by creating the one state but it is too bulky because now it contains too many actions, state functions in one file.
Another one I am thinking of substate. But I don't know how to follow this approach with this object.
It would be nice if someone could help me. Waiting for your fast response.

Thanks

Alex T
@alexdev888
Hi
I'm using ngxs emitter patter but when I subscribe to an emit I get empty response
Aliaksei Kuncevič
@kuncevic
📢 THE DISCUSSION MOVED TO SLACK 👉 https://now-examples-slackin-eqzjxuxoem.now.sh
Vladimir Drayling
@vladimirdrayling

Hi! @vaibhavjainongraph you can find the answers in the ngxs starter kit.
I'm using nx console for vscode.

image.png

Vladimir Drayling
@vladimirdrayling

Another interesting question:
Given a simple CRUD app with following routes:

// list-routing.module.ts
[
  {path: 'list', component: ListComponent},
  {path: 'list/:itemId', component: ListItemComponent},
]

// list.tate.ts
@State({
  name: 'list',
  defaults: {
    item: {
      model: {
        id: '',
        name: '',
      },
      error: null,
    }
  }
})
export class ListState {
  // selects, selectors & actions
}

In addition I'm using router serializer as described here. Maybe it's possible to update the form with the help of RouterStateParams.

<!-- ListComponent -->
<ul>
  <li *ngFor="let item of items" [routerLink]="'list' + item.id">{{item.name}}</li>
</ul>

<!-- ListItemComponent -->
<form [formGroup]="form" ngxsForm="list.item">
  <input formControlName="name">
</form>

How to set the form on page refresh for the URL list/1 WITHOUT using ActivatedRoute in ListItemComponent?

siva
@gatti_siva_twitter
which state management is better ngxs or ngrx
Sebastian
@Sebastian-G
whats the best way to provide a onSomethingSpecificChanged which isnt contained on the state it self.
Carlos Lopez
@luchillo17_twitter
Hi there, has anyone dealt with this kind of issue trying to use meta selectors?:
Carlos Esteban Lopez Jaramillo
@luchillo17
image.png
Carlos Esteban Lopez Jaramillo
@luchillo17
Hi there, do you guys know a way to use same store in Ngrx and Ngxs? we're starting a migration to Ngrx but want to do it bit by bit, can't find a way to use same redux instance for both.
HOVO1997
@HOVO1997
Hello guys i am new in ngxs how can i set initial value on store ???
Aliaksei Kuncevič
@kuncevic
📢 THE DISCUSSION MOVED TO SLACK 👉 http://tinyurl.com/ngxs-invite
Kelvin Esekhile
@cozmik
Hi guys, I am current fighting an issue of states not loading/initializing if one logs out without page refresh and logs in again... I am using NGXS OnInit hook in the state class but it seem to only get called when the user reloads the browser table then logs in, subsequent logging out and in doesn't trigger the functions... Thanks in advance