fix(story): ensure that the Model Codecs are always registered by tbouffard · Pull Request #749 · maxGraph/maxGraph
Manually cleaning the codecs introduced side effects, and the Codecs were unavailable once a story was visited. For example, display a story using the Model Codecs like Monitoring story, then going to another story and displaying the Monitoring story again. In the latter, the model wasn't fill. This was because ModelSerializer registers the Codecs but only once. If we unregistered the Codecs manually as we do for stories, the ModelSerializer is currently unable to know it has to register the Codecs again (by forcing the registration). The workaround is to force registration of Model Codecs before loading every story.
tbouffard
marked this pull request as ready for review
tbouffard
deleted the
fix/story_load_codecs_after_global_unregistration
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters