@@ -231,23 +231,23 @@ def add_child(child_class, *args, &block)
231231 # the childs content in order to respond to the subsequent component rendering call with
232232 # the childs content. In this case: "I should be deferred"
233233 skip_deferred_child_response = false
234- if child_class <= Matestack ::Ui ::Core ::Async ::Async || child_class < Matestack ::Ui ::Core ::Isolate :: Isolate
234+ if child_class <= Matestack ::Ui ::Core ::Async ::Async || child_class < Matestack ::Ui ::Core ::Isolated :: Isolated
235235 if args . any? { |arg | arg [ :defer ] . present? } && @matestack_skip_defer == true
236236 skip_deferred_child_response = true
237237 end
238238 end
239239
240240 # check only allowed keys are passed to isolated components
241- if child_class < Matestack ::Ui ::Core ::Isolate :: Isolate
242- unless args . empty? || args [ 0 ] . keys . all? { |key | [ :defer , :public_options , :rerender_on , :init_on , :rerender_delay ] . include? key }
241+ if child_class < Matestack ::Ui ::Core ::Isolated :: Isolated
242+ unless args . empty? || args [ 0 ] . keys . all? { |key | [ :defer , :public_options , :rerender_on , :init_on , :rerender_delay , :matestack_context ] . include? key }
243243 raise "isolated components can only take params in a public_options hash, which will be exposed to the client side in order to perform an async request with these params."
244244 end
245245 if args . any? { |arg | arg [ :init_on ] . present? } && @matestack_skip_defer == true
246246 skip_deferred_child_response = true
247247 end
248248 end
249249
250- if self . class < Matestack ::Ui ::Core ::Isolate :: Isolate
250+ if self . class < Matestack ::Ui ::Core ::Isolated :: Isolated
251251 parent_context_included_config = @current_parent_context . get_included_config || { }
252252 parent_context_included_config . merge! ( { isolated_parent_class : self . class . name } )
253253 args_with_context = add_context_to_options ( args , parent_context_included_config )
0 commit comments