reflex
reflex copied to clipboard
F-Strings don't render Images with remote URLs
Describe the bug Images are rendered incorrectly when the URL is passed via State Vars within f-strings.
To Reproduce Steps to reproduce the behavior:
- Code/Link to Repo:
pc.text(f"https://logo.clearbit.com/${State.news_publisher_domain[pos]}"),
pc.image(src=f"https://logo.clearbit.com/${State.news_publisher_domain[pos]}")
Expected behavior Images hosted should be displayed.
Screenshots
Specifics (please complete the following information):
- Python Version: 3.10
- Pynecone Version: 0.1.20
- OS: Ubuntu 20.04
- Browser (Optional): Chrome Version 110.0.5481.177 (Official Build) (64-bit)
Additional context Works correctly when the URL is hardcoded.