You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are calling a cell from the controller with a context, and that cell is rendering cells inside of itself passing a context. It appears that the context for the nested cells are the same as the original context specified in the controller and that the context that is added directly in the slim template is not available in the nested cell.
Shouldn't the context for nested cells be a superset of the cells' callers' context?
The text was updated successfully, but these errors were encountered:
+1 for this issue. Instantiated a cell from within another cell and passed in a context hash but the 'child' cell's context was overridden to the parent cell's context instead so the extra context was lost. Seemed a bit counterintuitive - I was expecting an overwrite (i.e. child cell would get the explicit context or a merger of the parent's context and the supplied context), but not for it to be silently ignored. Ended up using the options hash instead.
We are calling a cell from the controller with a context, and that cell is rendering cells inside of itself passing a context. It appears that the context for the nested cells are the same as the original context specified in the controller and that the context that is added directly in the slim template is not available in the nested cell.
Shouldn't the context for nested cells be a superset of the cells' callers' context?
The text was updated successfully, but these errors were encountered: