⬆️ ⬇️

Potential inaccuracy on the site.

Is there a potential inaccuracy on the site?



I explain. Suppose a user on the site has a flag with two values ​​("1/0") and it is displayed on all pages. A user clicking on it can change it to the opposite. It is implemented through a single function that simply changes the value is not the opposite. This is where the “potential inaccuracy” occurs - let's say the user opens two pages of the site and one clicks on the flag (that is, changes it to the opposite), but on the second page the flag remains original, but when you click on it, it changes from the current one (that is, clicking on the flag in the second window we will visually not change it).



Of course, any inaccuracy on the site is bad. But ... What do you think?


')

Source: https://habr.com/ru/post/6603/



All Articles