gtoolkit
gtoolkit copied to clipboard
Adding pages to LeDatabase fails if the page type class is created after the database
trafficstars
Adding pages with new page types to existing databases fails. LeDatabase>>#initialize uses the current existing page types to initialize its internal cache.
Methods that locate pages will fail if the page type is not in the cache.
Duplicate of https://github.com/feenkcom/gtoolkit/issues/2546 ?
@seandenigris yes related. We should update how the database reacts when pages with new types are added, to just add the new type to pagesByType without any error or need to reinitialise that array based on the current types