-
Notifications
You must be signed in to change notification settings - Fork 11
Flash should not require a private container #26
Comments
To elaborate on this, the LeafRenderer caches parsed Leaf templates in a dictionary. By using |
@tanner0101 I understand the limitation on caching and it makes sense. But you also mentioned that, at least at the time we asked, the only way to persist item for the entire lifetime of a request and only the life time of the request is to use the private container. Is there some sort of way we can satisfy both of these constraints? |
@BrettRToomey it depends on what context you are trying to access the private container in. From a leaf tag? You will probably need to cast the container as a |
Any movement on this? Happy to help wherever I can! |
@mcdappdev I'm giving it a try now |
@tanner0101 I have tried your proposed solution but there is a problem with it. Although I can successfully cast the |
In the interest of sharing knowledge, I finally managed to solve this in my own application using a custom implementation. Here's what I did:
This method eliminates the need for the middleware as well as the custom tag, and also doesn't rely on a |
According to Tanner, this forces the template to rerender on every route call.
The text was updated successfully, but these errors were encountered: