I have a problem when changing the value of a parameter in localStorage. Well, when the button is pressed, the parameter changes value. Then the value is retrieved by two components. This is where the problem arises. One component changes the value immediately, the other only after pressing another button.
I tried to change the code, set the same input code, but it does not help. Maybe one of you has an idea?
Some photos of my code and app.