Skip to content

Props removed with clean and inline options set to true #45

@mattarau

Description

@mattarau

This is almost the same as #16, but in this case it happens when both clean and inline options are set to true.

With this config:

  _habitat.render({
    inline: false,
    clientSpecified: true,
    clean: true
  });

This will work:

  <div class="container">
    <div>LOADING...</div>
    <script type="application/json">
      {
        "token": "kdj4JLH$Kjhdljkio8erO",
      }
    </script>
  </div>

  <script async src="/bundle.js" data-mount-in=".container"></script>

But if you config it like this:

  _habitat.render({
    inline: true,
    clean: true
  });

The following implementation will remove the props.

  <div class="container">
    <div>LOADING...</div>
    <script type="application/json">
      {
        "token": "kdj4JLH$Kjhdljkio8erO",
      }
    </script>
    <script async src="/bundle.js"></script>
  </div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions