Open Flunt1k opened 2 months ago
Looks like opensource we write these settings to local storage, but we never read it back.
The behaviour depends on current instance of settings provider Please describe steps to reproduce the issue.
Steps to reproduce:
After that, you will see that there are no changes to the table settings (related to the open table).
I assume the problem is due to the fact that the settings are always used from window.__DATA__, but not from localStorage.
https://github.com/ytsaurus/ytsaurus-ui/blob/f1a480a87f61fbd074e75cf311ce0de6572dc398/packages/ui/src/ui/store/reducers/navigation/content/table/table.js#L25 https://github.com/ytsaurus/ytsaurus-ui/blob/dfc8930d7925f4a6389cd6600f1ce165f2fb2852/packages/ui/src/ui/config/index.ts#L15 https://github.com/ytsaurus/ytsaurus-ui/blob/f910ed03c3f9671776c21b622df93b2e85be160d/packages/ui/src/ui/config/ui-settings.ts#L3
If the user selects something in the global table settings (which are behind the gear in the navigation), they will never be used in the navigation/table page. Because on the table page the settings are taken from
window.__DATA__
, not from local storage.