Nikhil Rao
Nikhil Rao
@ericwb Our markdown component is based on [react markdown](https://github.com/remarkjs/react-markdown) which has many plugins, there may be one to support this. We also have an internal library called flexdown (that we're...
@greenseeker what browser are you using? It's working on my Chrome and Safari. I wonder if [this](https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined) may be related.
no worries, closing this issue now
@TimChild We have [rx.set_value](https://reflex.dev/docs/api-reference/special-events/#rx.set_value) which should be able to handle this. Perhaps we need to make it more prominent in different use cases as it's a bit hidden.
@AmanSal1 thanks for looking into this! Agree with you that expiration-based caching would be ideal, but I'm unsure how to implement that easily, do you have a way?
> Periodically, we'll clean up expired states using a method that iterates through the expiration times dictionary and removes expired states. This is the part that seems a bit tricky...
It looks like there are available packages for both ways: LRU Dict: https://pypi.org/project/lru-dict/ Expiring Dict: https://pypi.org/project/expiringdict/ So maybe we can go with one of these, either using the library or...
@AmanSal1 We have a test on the Redis expiration, we can extend something similar for the Memory one. See [here](https://github.com/reflex-dev/reflex/blob/d5e3ccaed87efa7e7bc0e658f9fe12ceb3f9a93f/tests/test_state.py#L1622)
@AmanSal1 you need to pass in a State class to it (this is what it will return an instance of during a cache miss) ```python class ExampleState(rx.State): var1: int var2:...
@AmanSal1 what Python version are you on? This is without modifying it at all? The tests should pass as we run CI for all python versions.