Skip to content

A component call inside a Vue v-for gives a bare KeyError #240

Closed

Description

@JuroOravec

Found while fixing #235. A component call inside a Vue v-for whose server-side inputs read the loop variable fails when the page renders, with a bare KeyError. For example, c-name="member.name" inside <div v-for="member in members">. member exists only in the browser, but c-name is evaluated on the server.

The landing page demo hit exactly this (#235). The message should say what went wrong and how to fix it: the input is evaluated on the server, so use <c-for> to repeat on the server, or pass the value as a Vue prop with :name="member.name".

citry check with the app loaded reports a component inside a Vue v-for once #234 lands. This issue is about the runtime message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions