Project

General

Profile

Feature #32025

Allow changing props for the mounted components

Added by Ondřej Ezr over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
High
Assignee:
Category:
JavaScript stack
Target version:
-
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

Description

We should allow to change values on components rendered through our `render_component` thus our custom webcomponent.

It should listen to changes to its `data-props` attribute and rerender the mounted component.

Associated revisions

Revision 71c10db5 (diff)
Added by Ondřej Ezr over 1 year ago

Fixes #32025 - allow changing root Component props

This allows changing the root components props from legacy JS, as simple
components should be able to change value programatically without using
Redux store.

It only makes sense to listen to changes on the element's props
data attribute.

Revision 6d8b2f92 (diff)
Added by Ondřej Ezr over 1 year ago

Refs #32025 - fix rerender guard condition

In 71c10db57f we've added a rerender option for HTML mounted components,
but the guard there was accidently reversed, so it only got rendered
twice on first mount, but never rerendered.

History

#1 Updated by The Foreman Bot over 1 year ago

  • Assignee set to Ondřej Ezr
  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8368 added

#2 Updated by Ondřej Ezr over 1 year ago

  • Priority changed from Normal to High

#3 Updated by The Foreman Bot over 1 year ago

  • Fixed in Releases 2.5.0 added

#4 Updated by Ondřej Ezr over 1 year ago

  • Status changed from Ready For Testing to Closed

#5 Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/theforeman/foreman/pull/8399 added

Also available in: Atom PDF