Socket
Socket
Sign inDemoInstall

@ngrx/component-store

Package Overview
Dependencies
1
Maintainers
4
Versions
70
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ngrx/component-store

Reactive store for component state


Version published
Weekly downloads
176K
increased by2.68%
Maintainers
4
Install size
435 kB
Created
Weekly downloads
 

Changelog

Source

14.0.0-beta.0 (2022-05-30)

  • Closes #3344, #3345 (70056a8), closes #3344 #3345

Bug Fixes

  • store: rename template literal to string literal for createActionGroup (#3426) (7d08db1)

Features

Performance Improvements

  • component: reset state / trigger CD only if necessary (#3328) (f5b055b)

BREAKING CHANGES

    1. The context of LetDirective is strongly typed when null or undefined is passed as input.

BEFORE:

<p *ngrxLet="null as n">{{ n }}</p>
<p *ngrxLet="undefined as u">{{ u }}</p>
  • The type of n is any.
  • The type of u is any.

AFTER:

<p *ngrxLet="null as n">{{ n }}</p>
<p *ngrxLet="undefined as u">{{ u }}</p>
  • The type of n is null.
  • The type of u is undefined.
  • schematics: BEFORE:

Creating actions, reducers, and effects is possible without using the creator syntax is possible.

AFTER:

  • All schematics use the non-creator syntax to scaffold the code.
  • The option --creators (and -c) is removed from the schematic options.
  • The skipTests option is removed while generating actions.
  • Minimum version of Angular has been updated

BEFORE:

Minimum version of Angular was 13.x

AFTER:

Minimum version of Angular is 14.x

  • component: The native local rendering strategy is replaced by global in zone-less mode for better performance.

BEFORE:

The change detection is triggered via changeDetectorRef.detectChanges in zone-less mode.

AFTER:

The change detection is triggered via ɵmarkDirty in zone-less mode.

  • component: The $error property from LetDirective's view context is a thrown error or undefined instead of true/false.

BEFORE:

<p *ngrxLet="obs$; $error as e">{{ e }}</p>
  • e will be true when obs$ emits error event.
  • e will be false when obs$ emits next/complete event.

AFTER:

<p *ngrxLet="obs$; $error as e">{{ e }}</p>
  • e will be thrown error when obs$ emits error event.
  • e will be undefined when obs$ emits next/complete event.

<a name="13.1.0"></a>

Readme

Source

@ngrx/component-store

The sources for this package are in the main NgRx repo. Please file issues and pull requests against that repo.

Keywords

FAQs

Last updated on 30 May 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc