Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malformed view crashes the LVN Go app #204

Open
alykhanjetha opened this issue Aug 27, 2024 · 1 comment
Open

Malformed view crashes the LVN Go app #204

alykhanjetha opened this issue Aug 27, 2024 · 1 comment
Assignees
Labels
0.4 bug Something isn't working

Comments

@alykhanjetha
Copy link

The following code works:

        <VStack :for={message <- @messages}>
            <Text><%= message.name %></Text>
            <Spacer/>
            <Text><%= message.content %></Text>
        </VStack>

The following will crash the app:

        <VStack :for={message <- @messages}>
            <Text alignment: .leadin><%= message.name %></Text>
            <Spacer/>
            <Text><%= message.content %></Text>
        </VStack>

Note the alignment: .leadin mistake I made.

The markup is definitely wrong, but the app shouldn't crash.

@bcardarella
Copy link
Contributor

bcardarella commented Sep 10, 2024

This should be captured in the template compiler and not be permitted to render from the server. I'm going to move this to live_view_native as the bug is there

@bcardarella bcardarella transferred this issue from liveview-native/liveview-native-app-go Sep 10, 2024
@bcardarella bcardarella added bug Something isn't working v0.3 Hex release 0.3 labels Sep 17, 2024
@bcardarella bcardarella self-assigned this Sep 17, 2024
@bcardarella bcardarella added 0.4 and removed v0.3 Hex release 0.3 labels Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.4 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants