| daniel added a comment. |
Quote from the notes taken at the discussion at the Vienna hackathon:
A possible approach is to wrap OOUI widgets in Vue components. This would incur a slight performance penalty as data flowing towards the widgets would have to be touched twice (once by Vue and once by OOJS. Events flowing back out of the widgets would be watched roughly the same way whether they were rendered by Vue directly or through OOUI. However the big pain point right now is that OOUI is not modularized at all. There is no explicit dependency graph between the widgets and the parents and utilities they depend on. So currently it’s only feasible to import the whole library at once. This is even worse because it needs global scope which implies hacky script-loader solutions in modern build systems like webpack. I (Dan Andreescu) have an outstanding ask to the OOUI team to modularize the components but so far I haven’t heard back anything positive. For my purpose, using OOUI in Wikistats 2.0, this is a non-starter.
Cc: Aklapper, Jonas, thiemowmde, Aleksey_WMDE, Jan_Dittrich, daniel, GoranSMilovanovic, QZanden, enigmaeth, rohitt, Izno, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
