Relative Content

Tag Archive for reactjsnext.jsanti-patterns

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?

Is manually tracking the first render and acting on it an anti-pattern or bad code?

I’m working on component that works with MobX store and I ran into a problem. When I go to a page with a different item id, after loading the data, I see the previous data before the new one is rendered. So I wrote this check for the first render, which seems to work good for preparing component to render, but it seems to me that it might be bad code. Is it so?