-
Notifications
You must be signed in to change notification settings - Fork 225
Add TagHelperContext.Items bag to enable passing values between related tag helpers #238
Comments
I don't feel like a single bag to communicate between multiple Ultimately it will be less common for |
in an offline discussion, thought we ended with agreement some of the existing property bags ( this design provides
|
The way this item is worded leads me to believe the |
👍 -----Original Message----- The way this item is worded leads me to believe the Items bag is only accessible to TagHelpers running on the same element. If that Items bag is communicated down scope-wise via CopyOnWriteDictionary then I'm 100% on board. |
- Added an extra parameter to the TagHelperScopeManager so when it creates the TagHelperExecutionContext it can retrieve the parent execution context in order to create the Items bag that eventually exists on the TagHelperContext. - Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated code generation to pass the parent TagHelperExecutionContext into the TagHelperScopeManager. #238
- Added an extra parameter to the TagHelperScopeManager so when it creates the TagHelperExecutionContext it can retrieve the parent execution context in order to create the Items bag that eventually exists on the TagHelperContext. - Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated code generation to pass the parent TagHelperExecutionContext into the TagHelperScopeManager. #238
- Updated code generation tests to showcase new code generation behavior for building a scope with the parent TagHelperExecutionContext. - Added TagHelperExecutionContext tests to ensure that the Items bag is correctly wrapped. - Updated existing unit tests to abide by the new constructor format of TagHelperScopeManager, TagHelperContext and TagHelperExecutionContext #238
- Added an extra parameter to the TagHelperScopeManager so when it creates the TagHelperExecutionContext it can retrieve the parent execution context in order to create the Items bag that eventually exists on the TagHelperContext. - Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated code generation to pass the parent TagHelperExecutionContext into the TagHelperScopeManager. #238
- Updated code generation tests to showcase new code generation behavior for building a scope with the parent TagHelperExecutionContext. - Added TagHelperExecutionContext tests to ensure that the Items bag is correctly wrapped. - Updated existing unit tests to abide by the new constructor format of TagHelperScopeManager, TagHelperContext and TagHelperExecutionContext #238
- Added an extra parameter to the TagHelperScopeManager so when it creates the TagHelperExecutionContext it can retrieve the parent execution context in order to create the Items bag that eventually exists on the TagHelperContext. - Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated code generation to pass the parent TagHelperExecutionContext into the TagHelperScopeManager. #238
- Updated code generation tests to showcase new code generation behavior for building a scope with the parent TagHelperExecutionContext. - Added TagHelperExecutionContext tests to ensure that the Items bag is correctly wrapped. - Updated existing unit tests to abide by the new constructor format of TagHelperScopeManager, TagHelperContext and TagHelperExecutionContext #238
- Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated TagHelperScopeManager to create CopyOnWriteDictionary item bags for created TagHelperExecutionContexts. #238
- Added TagHelperScopeManager tests to ensure that the Items bag is correctly wrapped. - Added test to TagHelperExecutionContext to make sure items bags are properly propogated. - Updated existing unit tests to abide by the new constructor format of TagHelperScopeManager, TagHelperContext and TagHelperExecutionContext #238
- Add a an Item properties on TagHelperExecutionContext to propagate to the TagHelperContext. - Updated TagHelperScopeManager to create CopyOnWriteDictionary item bags for created TagHelperExecutionContexts. #238
- Added TagHelperScopeManager tests to ensure that the Items bag is correctly wrapped. - Added test to TagHelperExecutionContext to make sure items bags are properly propogated. - Updated existing unit tests to abide by the new constructor format of TagHelperScopeManager, TagHelperContext and TagHelperExecutionContext #238
- Updated tests to create TagHelperContext correctly.
Add a new property
public IDictionary<string, object> Items { get; }
to theTagHelperContext
class to facilitate the passing of arbitrary items between Tag Helpers running on the same element.e.g.
The text was updated successfully, but these errors were encountered: