Skip to content

Script locals always override the locals passed via attribute #132

@thewebartisan7

Description

@thewebartisan7

Would be possible that script locals inside component act as default locals, and the locals passed via attribute override the script locals?

Because right now it's the opposite, the script locals override the locals passed via attribute.

And I can't even do something like this:

<script locals>
  module.exports = {
    name: typeof name !== "undefined" ? name : "John"
  }
</script>

When "name" is the locals passed via attribute locals.

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