#4102 (Review the site meta data for React front end)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Summary
Children
Comments
- 5 years, 5 months ago by Sharif Mehedi about #4102 (Review the site meta data for React front end) : I placed a condition checker to check for site_data load before rendering anything.
- 5 years, 5 months ago by Sharif Mehedi about #4102 (Review the site meta data for React front end) : It seem there's a bug that needs to be dealt with. When i try to log in to any lino site, after pressing "ok" on the login dialog, the window goes blank. and the javascript console says: "window.App.state.site_data is null". after I hit refresh, everything seems to work fine. The problem seem to appe...
- 5 years, 5 months ago by Sharif Mehedi about #4102 (Review the site meta data for React front end) : Okay the screenshot in an "More" tab
- 5 years, 5 months ago by Sharif Mehedi about #4102 (Review the site meta data for React front end) : As an experiment, i removed all the unnecessary bound_actions and repr from ActorData, with this the size of the json files became almost half, the screenshot below is an example of that and is, the size of Lino_products.Books_900_en.json became 31KB from 59KB.
- 5 years, 5 months ago by Sharif Mehedi about #4102 (Review the site meta data for React front end) : In the ActorData (object), we have a key "ba" for value: an object that has a key-value pair for every bound_action of the Actor. React does not need to know every bound_action of the Actor, rather it only needs to know the ones that has toolbarActions and/or window_layout. A bound_action without any...
- 5 years, 6 months ago by Luc Saffre about #4102 (Review the site meta data for React front end) : I am starting to have a vision about how the application metadata should be communicated to the React client. The current system with those many json files is not only a performance issue but also a suboptimal design. I plan to write two additional views, without breaking the existing system, to sho...