liveview-native / liveview-native-core

Provides core language-agnostic functionality for LiveView Native across platforms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug: Nesting for loops crash

winescout opened this issue · comments

commented

Nesting for loops in a heex template deeper than 2 leads to the following crash:

PhoenixLiveViewNative/Fragment.swift:282: Fatal error: Static cannot reference template when templates are not provided
2022-10-01 12:39:50.968780-0700 decoder_bug_ios[20933:2863242] PhoenixLiveViewNative/Fragment.swift:282: Fatal error: Static cannot reference template when templates are not provided

I setup a clean-room app to demonstrate the issue here: https://github.com/winescout/lvn_decoder_issue_1

@carson-katri could you please check this out

I can look into this, since I'm familiar with with fragment decoding side of things.

Blocked by #17

this should not have been closed. Patching in the swift client is not a fix for Core