Skip to content
#

ngrx

Here are 1,037 public repositories matching this topic...

platform
altair
bobobox
bobobox commented Apr 22, 2021

If an Environment contains a nested object, it doesn't seem to be possible to reference a nested property using the double curly braces syntax.

To Reproduce
Steps to reproduce the behavior:

  1. Create an Environment containing a nested object, eg.
{
  "foo": {
    "bar": "baz"
  }
}
  1. Attempt to get the value baz using double curly brace syntax, eg. in the URL bar or in
developer239
developer239 commented Jan 8, 2021

When I use removeItem state operator then TypeScript complains that message object can be possibly undefined even though I specified the type for removeItem operator. I could fix the issue with optional chaining but that is not possible if I want to use a utility library like Ramda

![image](https://user-images.githubusercontent.com/14946081/104027016-135aed80-51c7-11eb-9316-9b3dbf5b79bf

A complete Angular 6 and Webpack 4 starter seed with minimal and full featured branches. Full featured branch includes: Material Design 2 (Bootstrap 4 branch available as well), @ngrx, HMR, DLLs and optional use of Universal for server-side rendering - Supports AOT (offline) compilation, sync and lazy loading. Karma/Protractor for e2e/unit tests.

  • Updated Mar 30, 2021
  • TypeScript
deox
dannypule
dannypule commented Oct 4, 2019

This should fail because otherNum is not part of the State interface:

interface State {
  num: number
}

export const initialState: State = {
  num: 0
};

export const appsReducer = createReducer(initialState, handleAction => [
  handleAction(actions.getApps.success, () => ({
    num: 0,
    otherNum: 0 // adding this property should trigger a warning
  })),
]);

Improve this page

Add a description, image, and links to the ngrx topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the ngrx topic, visit your repo's landing page and select "manage topics."

Learn more