Skip to content

Answer:65 refactor user form component from reactive form to signal form#1463

Open
peggylicious wants to merge 1 commit intotomalaforge:mainfrom
peggylicious:challenge/answer-65
Open

Answer:65 refactor user form component from reactive form to signal form#1463
peggylicious wants to merge 1 commit intotomalaforge:mainfrom
peggylicious:challenge/answer-65

Conversation

@peggylicious
Copy link

I used linkedSignal() to manage the user form state.

**Every time the 'Edit' button is clicked: **

  1. Use the id() to fetch new user.
  2. The linkedSignal() detects the source change, resets the form, then updates userModel with latest values from the source userResource.value()
  3. The userModel update triggers the form() function to refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant