-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed new template re-compilation issue
If a new template was added when the Phoenix server is running that new template wasn't being picked up by the CodeReloader because it wasn't being tracked. The originaly implementation copy-pasta'd the Phoenix LiveView implementation which gets around this because the template names are known AOT even if the template doesn't exist yet so that `@external_resource` was tracked but in LVN because we incorporate the TARGET into the template name (i.e. `home_live.swiftui+ios.neex`) we cannot use this method. The solution was to implement `__mix_recompile__?` and track file collection hashes for comparing if a new file was added or not that *should* be treated as a template for the given LiveView Native Render Component
- Loading branch information
1 parent
70d0c2e
commit 858372f
Showing
3 changed files
with
120 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters