Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

emitInitialValueOnInit is missing

See original GitHub issue


Thank you for the great library.

I’m updating to the new released version and I saw that the options emitInitialValueOnInit is missing. Can you please return back this feature.

I want the emit my re-mapped value right away.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

svenank3rcommented, Oct 26, 2022

@maxime1992 I will look into and see if I can come up with a fix

maxime1992commented, Oct 25, 2022

There’s not at the moment. I think that’s a valid use case though and that there’s no work around at the moment. So I’d be willing to accept a new class property exposing that state. Would you be willing to make a PR @svenank3r ?

In case you are, here’s some guidance after taking a quick look: It will be looking a lot like this code.

It should be built in a way that the perf impact of comparing the input data with the current form value should only affect the forms that are using the new property. This shouldn’t be a big deal as observables are lazy by nature (and the new property should be an observable).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Observable with initial value - angular - Stack Overflow
The solution is to move the code from ngAfterViewInit to ngOnInit , before change detection was triggered. This is not always possible. An ......
Read more >
OnInit - Angular
A lifecycle hook that is called after Angular has initialized all data-bound properties of a directive. Define an ngOnInit() method to handle any...
Read more >
[Angular] Addon Controls resets the component's local ...
Update the instance variable in ngOnInit with a new value. Go to the storybook controls tab and alter the @input entry. The controls...
Read more >
A real world example of an Angular observable - Arroyo Labs
BehaviorSubject only takes a minor step further from Subject as it allows us to set initial value to the observable. The reason for...
Read more >
Angular 5+ integration | Docs - TinyMCE
By default, the component will emit all the events listed in the Event binding section. Possible values: A comma separated list of events...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found