When I use "hot. updateSettings ({dataSchema: {username: null})", why does it not take effect?

Tags: #<Tag:0x00007efc620f0158> #<Tag:0x00007efc620f7ac0>

When I use “hot. updateSettings ({dataSchema: {username: null})”, why does it not take effect?

Hi @2992919713

You won’t see any noticeable changes until you assign the actual data to the dataSchema . Here’s an example showing that updating settings actually works:

https://jsfiddle.net/aszymanski/72vwo6eb/

When the dataSchema is initially {}, even if the value of the dataSchema is changed later, because it is assigned after the backend request, it is observed that its value remains unchanged. If this is the case, what should I do? https://jsfiddle.net/sheep5250/h7z4o51b/

Hi @2992919713

dataSchema needs to have predefined config at the beginning (like in my example) to work correctly with updating the settings.