Your signal store method
withMethods(store => ({
setUsername: rxMethod<string>(
pipe(tap(username => patchState(store, { username })))
),
})),
username = input.required<string>();
ngOnInit() {
this.#store.setUsername(this.value);
}
this way you wont need effects or ngOnChanges