!7 concept Bla { S name; } cmodule2 QuickReloadTest > DynPrintLog { transient virtual Concepts oldConcepts; start { print(+oldConcepts); print(+Bla); db(); printVars_str(concepts := db_mainConcepts().concepts); pnlStruct(list(Bla)); db_checkConceptIDs(); print(conceptsWhere(Bla, name := "yo")); uniq(Bla, name := "yo"); } Concepts _getReloadData() { ret db_mainConcepts(); } void _setReloadData_early(virtual Concepts data) { if (data == null) ret; oldConcepts = data; Concepts concepts = db_mainConcepts(); concepts.miscMapPut("dbGrabber", func -> Bool { concepts.miscMapRemove("dbGrabber"); pcall { concepts.idCounter = getLong idCounter(oldConcepts); printVars_str(idCounter := concepts.idCounter); Map oldMap = cast _get concepts(oldConcepts); printVars_str(+oldMap); concepts.concepts.putAll((Map) quickImport_unlisted(oldMap)); // Note: this calls _doneLoading2() on all concepts concepts.assignConceptsToUs(); true; } false; }); } }