Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setAppState is not replacing the whole object instead just updating the field in the AppState Object #65

Open
subhamtsd opened this issue Mar 16, 2021 · 1 comment
Assignees

Comments

@subhamtsd
Copy link
Collaborator

First I updated appState by following object
{ "status": "SUCCESS", "lockId": "1", "createTs": "2020-11-26 10:50:33", "createUser": "RESTCALL", "modifyTs": "2020-11-26 10:50:33", "modifyUser": "RESTCALL", "categoryKey": "null", "languageKey": "1", "catalogKey": "null", "sequence": "0", "active": "true", "categoryCode": "Architect", "displayName": "Architect", "longDescription": "Architect", "shortDescription": "Architect", "isTop": "false", "parentCategories": [], "childCategories": [] }

Then I updated the setAppState with different object :

{ "status": "SUCCESS", "lockId": "1", "createTs": "2020-08-26 13:00:42", "createUser": "RESTCALL", "modifyTs": "2020-08-26 13:00:42", "modifyUser": "RESTCALL", "productKey": "112264302", "languageKey": "1", "active": "true", "productCode": "LawnTennis", "saleCodePrefix": "VATIKALAMPS", "buyable": "true", "launchDate": "null", "availabilityDate": "null", "decommissionDate": "null", "taxCategoryKey": "0", "displayName": "Lawn Tennis", "shortDescription": "Lawn Tennis", "longDescription": "Lawn Tennis", "brandKeys": [], "parentCategories": [], "childCategories": [] }

Here the AppState Value in the Json is Something like this Not replacing the whole object instead just updating the field in the AppState Object

{ "selectedRowKey": { "status": "SUCCESS", "lockId": "1", "createTs": "2020-08-26 13:00:42", "createUser": "RESTCALL", "modifyTs": "2020-08-26 13:00:42", "modifyUser": "RESTCALL", "categoryKey": "null", "languageKey": "1", "catalogKey": "null", "sequence": "0", "active": "true", "categoryCode": "Architect", "displayName": "Lawn Tennis", "longDescription": "Lawn Tennis", "shortDescription": "Lawn Tennis", "isTop": "false", "parentCategories": [], "childCategories": [], "productKey": "112264302", "productCode": "LawnTennis", "saleCodePrefix": "VATIKALAMPS", "buyable": "true", "launchDate": "null", "availabilityDate": "null", "decommissionDate": "null", "taxCategoryKey": "0", "brandKeys": [] } }

@subhamtsd
Copy link
Collaborator Author

Hi @saurshaz

I have added a description for the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants