Replies: 2 comments
-
You can make it a computed var. class FeedItem(rx.Base):
url: str
text: str
...
class State(rx.State):
feed_url=...
@rx.var
def parsedFeed(self) -> list[FeedItem]:
result = []
for article in feedparser.parse(self.feed):
result.append(FeedItem(...))
return result Have a look at the |
Beta Was this translation helpful? Give feedback.
0 replies
-
OK, thanks! I'll give that a shot. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having trouble with data types in State (I think).
I'm trying to do something like this with an rss feed (from regular python):
My two main questions when trying to do this in Reflex:
Thanks for any help!
Beta Was this translation helpful? Give feedback.
All reactions