-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description
I'm submitting a...
[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report
[x] Feature request
[ ] Documentation issue or request
What is the current behavior?
As noted in ngrx/store-devtools#64 and ngrx/store-devtools#67 using an ES2015 Set or Map works well enough in ngrx, but the devtools won't display the object instead showing an empty object ({ }
) when it's first set, and omitting the object in diffs. Additionally, when looking at the graph of the store, the Set/Map will show up as a node, but have no associated value.
Expected behavior:
Devtools should show that a Set/Map was used, and that it was updated as a result of an action.
Minimal reproduction of the problem with instructions:
given:
StoreDevtoolsModule.instrument({ maxAge: 50 })
and
interface MyState {
data: Map<string, Item>;
}
any reducer that updates this field will succeed, however this property will not be displayed correctly in the devtools, and will not exist in diffs.
Version of affected browser(s),operating system(s), npm, node and ngrx:
[email protected]
[email protected]
@ngrx/[email protected]
@ngrx/[email protected]
@ngrx/[email protected]
Other information:
Based on the other bugs, it seems that the devtools extension may have a serialize
argument that may alleviate this, however passing this to ngrx doesn't seem to do anything different, so I'm unsure if there's work on the ngrx side to support this.