StorageHandler.Child doesn't use parent key?

Topics: Bugs, Feature Requests, Framework Services
Feb 22, 2013 at 4:29 AM
Edited Feb 22, 2013 at 4:31 AM
Scenario: Conductor that has a unique ID (i.e. details page) and I would like to cache the data. It has several children which display data based on the unique ID of the parent (like a list).

Since Caliburn doesn't do this, if I navigate to another detail page, I will see the other detail items first before I can refresh the data... since the child storage handler doesn't have a unique ID.

If I tell the parent storage handler to store its child, I would expect Caliburn to attach the parent's key to the child's storage when called like this.

As a workaround, I tried to do this in the child storage handler:

Id(x => x.Parent.SomeIdProperty)

But when it gets restored, the parent hasn't been set, so it throws an exception.

Is there another way to achieve the same thing?