Skip to content

app.show 是否支持传参,更新 props #626

Open
@realyuyanan

Description

@realyuyanan

Clear and concise description of the problem

每次点击都会更新参数,app.show 是否可以支持传参。

  let app;
  const initSubApp = async (id) => {
    app = await Garfish.loadApp('app2', {
      entry: 'http://localhost:3001',
      basename: '/test',
      domGetter: '#container',
      props: {
        id
      },
    });
    app.mount();
  }
  const handleClick = (id) => {
    if (!app) {
      initSubApp(id);
      return
    }
    app.show(id);
  };

Suggested solution

app.show 支持传参

Alternative

No response

Additional context

No response

Validations

  • Read the Contributing Guidelines.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions