i'm working on a project based on redux. I have pages for adding new applications, roles, companies etc. And they have some fields inside. I'm using redux-persist for persistence on localStorage. Also using crosstabSync for multiple tab store sync.
Now the problem is that sync system mess with rehydration. When i click to add new company button and arrive to:
http://localhost:3000/ui/company/-1
persist/Rehydrate starts to action for multiple/endless time. My application page code:
And also i have to edit bec it's not working when you try to edit company. Fields empty. And when i refresh page on add company i found that crosstabSync restarts itself.
i'm working on a project based on redux. I have pages for adding new applications, roles, companies etc. And they have some fields inside. I'm using redux-persist for persistence on localStorage. Also using crosstabSync for multiple tab store sync.
Now the problem is that sync system mess with rehydration. When i click to add new company button and arrive to: http://localhost:3000/ui/company/-1 persist/Rehydrate starts to action for multiple/endless time. My application page code:
Loop cause mainly "mapPropsToFields" part. It returns allways in that.
So i tried adding
Also i'm changing:
So after dispatch part completed that state starts to action right. But why that happens and is that the right way to do?
If necessary this is the reducer part of company:
And also i have to edit bec it's not working when you try to edit company. Fields empty. And when i refresh page on add company i found that crosstabSync restarts itself.
@rt2zz Do you have any idea?