reflex icon indicating copy to clipboard operation
reflex copied to clipboard

F-Strings don't render Images with remote URLs

Open LaxmanSinghTomar opened this issue 1 year ago β€’ 0 comments

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 logo

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.

LaxmanSinghTomar avatar Mar 19 '23 05:03 LaxmanSinghTomar