Questions tagged [lifecycle-hook]

42 questions
1
vote
0 answers

Laravel test lifecycle hook

I have a trait that records activity on the created lifecycle hook. In my test class, if I run any given single test with RefreshDatabase it fails saying the table is empty. If I run the test without RefreshDatabase it passes but then fails the next…
L. Fox
  • 328
  • 1
  • 6
  • 20
1
vote
2 answers

Running scripts using lifecycle hook does not work properly in kubernetes

I am new to kubernetes env. And I am learning kubernetes using minikube. I have a situation where I have to configure fdw (foreign table concept) in PostgreSQL. I am trying to implement this fdw concept in kubernetes. For that I have two pods meta…
1
vote
1 answer

Why is this.value undefined/null on every lifecycle hook when using [ngModel]="true"

I have a custom form control which implements ControlValueAccessor to handle [(formControl)]="..." and [(ngModel)]="...". @Component({ selector: 'app-foo', templateUrl: './foo.component.html', styleUrls: ['./foo.component.css'], providers:…
DerZyklop
  • 3,672
  • 2
  • 19
  • 27
1
vote
5 answers

template variable always undefined ngOnChanges

I have a child component that is used twice within its parent, it uses ngOnChages to update values; This all worked fine, but now I'm trying to manipulate the template, within the child, according to information passed it via @Input variables. What…
RasMason
  • 1,968
  • 4
  • 32
  • 54
1
vote
1 answer

Vuejs: call created() hook twice

I created a hook to reload my data from the database on a button click: