-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[REF-889] useContext per substate #2149
Commits on Nov 7, 2023
-
Each substate has its own context
Var has _var_hooks and _var_imports Instead of relying on the page/component having the appropriate imports statically, allow these to be dynamically calculated for greater flexibility
Configuration menu - View commit details
-
Copy full SHA for 27cd95c - Browse repository at this point
Copy the full SHA 27cd95cView commit details -
Configuration menu - View commit details
-
Copy full SHA for be6fa14 - Browse repository at this point
Copy the full SHA be6fa14View commit details -
Ensure that adding additional Var metadata in the future does not require lots of changes everywhere, by placing all carryable metadata into _var_data
Configuration menu - View commit details
-
Copy full SHA for 139c01a - Browse repository at this point
Copy the full SHA 139c01aView commit details -
Account for all imports and hooks where they are used
Remove all* default imports for a page, instead relying on the components and vars that use a particular import to name it explicitly with an ImportVar Remove hardcoded hooks, instead format these in for components that depend on them. Move ImportVar to reflex.utils.imports so it can live next to the ImportDict and avoid circular import with reflex.vars
Configuration menu - View commit details
-
Copy full SHA for 9c81f8a - Browse repository at this point
Copy the full SHA 9c81f8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e8de0e9 - Browse repository at this point
Copy the full SHA e8de0e9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 27f527c - Browse repository at this point
Copy the full SHA 27f527cView commit details -
Configuration menu - View commit details
-
Copy full SHA for da6a367 - Browse repository at this point
Copy the full SHA da6a367View commit details
Commits on Nov 8, 2023
-
Configuration menu - View commit details
-
Copy full SHA for c9ebed4 - Browse repository at this point
Copy the full SHA c9ebed4View commit details -
Cond var must be _var_is_local=False
It needs to render with curly braces wrapped around it
Configuration menu - View commit details
-
Copy full SHA for aa574e5 - Browse repository at this point
Copy the full SHA aa574e5View commit details -
Component: do not mutate event_triggers
Instead avoid rendering triggers in Component.render, but otherwise leave them alone so that components may be rendered multiple times without changing the output.
Configuration menu - View commit details
-
Copy full SHA for 846fe51 - Browse repository at this point
Copy the full SHA 846fe51View commit details -
Configuration menu - View commit details
-
Copy full SHA for b9960d3 - Browse repository at this point
Copy the full SHA b9960d3View commit details
Commits on Nov 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 4b63a8b - Browse repository at this point
Copy the full SHA 4b63a8bView commit details
Commits on Nov 13, 2023
-
client_side_routing: use
rx.cond
instead of theCond
componentUsing `rx.cond` helper ensures that the condition carries the `isTrue` import.
Configuration menu - View commit details
-
Copy full SHA for 5157ed2 - Browse repository at this point
Copy the full SHA 5157ed2View commit details -
Do not surround the formatted values with extra curly braces
Configuration menu - View commit details
-
Copy full SHA for 06d8fa2 - Browse repository at this point
Copy the full SHA 06d8fa2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4afd4e8 - Browse repository at this point
Copy the full SHA 4afd4e8View commit details
Commits on Nov 14, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 34c3c2c - Browse repository at this point
Copy the full SHA 34c3c2cView commit details -
Configuration menu - View commit details
-
Copy full SHA for a29ca2e - Browse repository at this point
Copy the full SHA a29ca2eView commit details
Commits on Nov 15, 2023
-
Add tests for Component._get_vars
Ensure that Vars used in different contexts in a Component are correctly identified and returned.
Configuration menu - View commit details
-
Copy full SHA for 78ddc79 - Browse repository at this point
Copy the full SHA 78ddc79View commit details -
Configuration menu - View commit details
-
Copy full SHA for 62b9332 - Browse repository at this point
Copy the full SHA 62b9332View commit details -
Configuration menu - View commit details
-
Copy full SHA for 454226f - Browse repository at this point
Copy the full SHA 454226fView commit details -
Configuration menu - View commit details
-
Copy full SHA for a356bcb - Browse repository at this point
Copy the full SHA a356bcbView commit details
Commits on Nov 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9329e18 - Browse repository at this point
Copy the full SHA 9329e18View commit details -
cond: Carry VarData before
format_cond
`format_cond` doesn't really work with f-string semantics due to a blind `{`, `}` removal which breaks the JSON-encoding of VarData. So instead, we carry the VarData explicitly on the cond_var and change `format_cond` to `str` the Var before formatting to ensure it does not emit a VarData-encoded f-string.
Configuration menu - View commit details
-
Copy full SHA for 90159b0 - Browse repository at this point
Copy the full SHA 90159b0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ee5702 - Browse repository at this point
Copy the full SHA 1ee5702View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1ef7dee - Browse repository at this point
Copy the full SHA 1ef7deeView commit details
Commits on Nov 21, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 006ca66 - Browse repository at this point
Copy the full SHA 006ca66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c54c66 - Browse repository at this point
Copy the full SHA 3c54c66View commit details -
Configuration menu - View commit details
-
Copy full SHA for 475694b - Browse repository at this point
Copy the full SHA 475694bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0f36629 - Browse repository at this point
Copy the full SHA 0f36629View commit details -
Configuration menu - View commit details
-
Copy full SHA for 96b6090 - Browse repository at this point
Copy the full SHA 96b6090View commit details -
Configuration menu - View commit details
-
Copy full SHA for 70cb517 - Browse repository at this point
Copy the full SHA 70cb517View commit details -
Configuration menu - View commit details
-
Copy full SHA for 569ff86 - Browse repository at this point
Copy the full SHA 569ff86View commit details -
Configuration menu - View commit details
-
Copy full SHA for 00d137e - Browse repository at this point
Copy the full SHA 00d137eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bf385fb - Browse repository at this point
Copy the full SHA bf385fbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2230d10 - Browse repository at this point
Copy the full SHA 2230d10View commit details -
* Do not cast to Style() early in `Component.add_style` * Memoize return value of `Component._get_vars` * Defer `VarData.merge` for most operations -- call it once * Avoid `serializers.serialize` for primitive JSON types
Configuration menu - View commit details
-
Copy full SHA for 1d78788 - Browse repository at this point
Copy the full SHA 1d78788View commit details