ngxs / store

🚀 NGXS - State Management for Angular
http://ngxs.io
MIT License
3.54k stars 402 forks source link

🐞[BUG]: Form Value Update rewrite emitted value #1597

Closed kKen94 closed 2 years ago

kKen94 commented 4 years ago

Hi, I have a problem with form plugin.

image

I have a search text field around all project. When I change page, I would reset the field, so I run:

image.

This are state and FormModel:

image

image

image

image

image

When I change page, immediatly before the model disappear, after that initially it change value, and immediatly after was triggered another form update value action that rewrite the field with previous value. Here the log:

log

Libs:

Browser:

arturovt commented 4 years ago

Could you provide a minimal reproducible example?

Note: Our policy is that issues reported without a reproduction will be closed immediately and then reopened once a reproduction has been provided. Please respect the developers of this project by doing this. We give of our personal time to work on this project and would rather be spending our time fixing or enhancing the library than chasing down badly described or unreproducable issues.

P.S. this is from the issue template.

kKen94 commented 4 years ago

Yes, I'm sorry.

You can download this repo https://github.com/t2c-dev/angular-boilerplate

Searchbar has the same behavior described above

arturovt commented 2 years ago

Hey @kKen94 . I apologize that it's been so long since the issue was opened. I just got my hands to your example, but I'm unable to log in:

image

I'm also seeing errors in the console:

 Cannot read properties of undefined (reading 'includes')
    at SweetHelper.fireToast

Could you add a guide on how to use your example and what steps should I proceed with to reproduce the bug?

arturovt commented 2 years ago

I was trying to at least log in into the system, but I'm not able to. I'm closing this until the minimal reproducible example is provided.