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
Is there a reason that FlowComponents.find() throws an exception when a component is not found?
I have an existing project with modal dialog support that retrieves the template name to display from a session variable. I would like to add direct component support by doing something like:
However, the find call is throw an error when the component is not found. Obviously, I can just wrap the find call with a try/catch block, but it seems strange to have find() throw an error in the first place.
The text was updated successfully, but these errors were encountered:
Here's an example of what I'm talking about. I don't want the caller of openModal to know whether the modal is a component or template. Since the ComponentsStore is hidden, the only way to determine whether I'm dealing with a component is through find.
Is there a reason that FlowComponents.find() throws an exception when a component is not found?
I have an existing project with modal dialog support that retrieves the template name to display from a session variable. I would like to add direct component support by doing something like:
However, the find call is throw an error when the component is not found. Obviously, I can just wrap the find call with a try/catch block, but it seems strange to have find() throw an error in the first place.
The text was updated successfully, but these errors were encountered: