reflex
reflex copied to clipboard
Images are not rendered correctly when State Vars and F-Strings are used
Describe the bug Images are rendered incorrectly when src attribute takes in 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 should be rendered correctly for an image hosted remotely.
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.