* fix use_context
components which are newly added to the layout after the initial
render do not have access to contexts. we solve this by tracking
life cycle hooks in stack and copying the context providers from
parent to child hooks.
we also change how contexts are implemented - instead of needing
a create_context function which returns a new Context class, we
just return a Context object that constructs a ContextProvider
component. the earlier implementation was too clever and did not
add anything for it.
* add test
* add changelog entry
* fix mypy
* fix tornado dev server
* remove unused func
* improve test
* remove unused method
* fix style issues
* get clever with functions
* fix tests
* update changelog
* get coverage
* Update good_conditional_todo_list.py
The checkmark was on the wrong list items compared to the more verbose example.
* Update main.py
fixed typo. It was rendering `1 or 10` instead of `1 of 10`
* experiment with bundling
* get starlette and tornado to work
* get sanic and flask to work
still need to rework how modules are accessed
* refine routing + fix bugs
* fix cov
* add use_request back
* remove unused imports
* fix test, not sure why it broke
* handle unsafe user provided paths
* increase default testing timeout
* ignore untyped func
* rework as location object
* fix tornado
* upgrade snowpack
* always poll async
if we poll sync then the server might not ever
get a hold of the event loop. this was causing
a problem for the sanic server in a test
* test traversal_safe_path
* add comment about catch
* remove unused imports
* symlinks are ok in traversal_safe_path
* fix docs
* refine docstring
* initial work to move away from run func
* initial work converting to new server interface
* finish up flask conversion
* convert tornado + begin reworking test utils
* remove shared dispatchers and rename to serve module
* misc fixes
* start to switch test suite to playwright
* get basic tests working
* get some tests working
* slight optimization
* misc minor improvements
* fix test_html
* implement test_module
* implement connection context
* fix playwright install in nox
* add minimal docstrings
* remove pytest-playwright
* get suite to run (with failures)
* fix log assertion problems
* misc fixes in order to get reconnect test to work
* expose use_scope instead of use_connection
* fix test common
* fix test_client
* test use_scope
* remove unused imports
* fix live docs
* fix typing issues
* fix rest of tests
* improve coverage
* import protocol from typing extensions
* fix syntax error
* fix docs test
* fix flake8
* test run function
* use selector event loop
* try to fix loop
* only install chromium
* remove unused import
* fix shutdown code
* skip browser tests on windows
* fix coverage + reorg testing utils
* minor logging changes
* fix live docs script
* fix log message
* fix types
* documentation updates
* use dataclasses for options instead of typeddict
* move section
* add note to changelog
* fix missing refs
* fix ref
* fix fastapi alias
* fix tornado redirect
* remove unused imports
* changelog entry
* fix noxfile tag commit msg
* improve changelog entry
* fix typo in old cl entry