reflex
reflex copied to clipboard
πΈοΈ Web apps in pure Python π
Sometimes the event handlers may need to know the specific client that is calling it, to do logic such as rate-limiting. Each client has a token already, so we can...
Sometimes you may want the raw header (for example to get the IP address). We can expose the request object to the event handler. The relevant starting point is here:...
**Describe the bug** Foreach seems to be using the index even when not specified. **To Reproduce** Steps to reproduce the behavior: - Code/Link to Repo: - ```python class ForeachState(pc.State): color...
**Describe the bug** When you pass the wrong kind of argument to an event trigger (var instead of event handler), it result in a runtime JS error instead of compilation...
Currently the port can only be set in the `pcconfig.py` file. It would be nice if we could override it during `pc run`.
Currently all state vars must be JSON serializable to send the the frontend. However sometimes it could be useful to have state fields that are only on the backend (i.e....
Currently the first argument to `pc.cond` must be a `pc.Var` with type `bool`. However since JS is lax about converting anything to a bool, perhaps we can relax this requirement...
Currently all state vars need to be defined as fields within the State class. Sometimes it is useful to dynamically add vars after the state class is already defined. Minimally...
**Describe the bug** When using `pc.foreach()` with a list of `str` as iterable input, the BaseVar that you obtain for rendering does not possess the correct type **To Reproduce** Steps...
**Describe the bug** A clear and concise description of what the bug is. I got following error. ``` AttributeError: 'function' object has no attribute 'fn' ``` Details ```bash βββββββββββββββββββββββββββββββ Starting...