htmy 0.7.0__tar.gz → 0.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of htmy might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: htmy
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Async, pure-Python rendering engine.
5
5
  License: MIT
6
6
  Author: Peter Volf
@@ -116,7 +116,7 @@ user_table = html.table(
116
116
  )
117
117
  ```
118
118
 
119
- `htmy` also provides a `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions to convert them into components (preserving the `props` typing).
119
+ `htmy` also provides a powerful `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions and methods to convert them into components (preserving the `props` typing). You can find out more about this feature in the [Function components](https://volfpeter.github.io/htmy/function-components/) guide.
120
120
 
121
121
  Here is the same example as above, but with function components:
122
122
 
@@ -97,7 +97,7 @@ user_table = html.table(
97
97
  )
98
98
  ```
99
99
 
100
- `htmy` also provides a `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions to convert them into components (preserving the `props` typing).
100
+ `htmy` also provides a powerful `@component` decorator that can be used on sync or async `my_component(props: MyProps, context: Context) -> Component` functions and methods to convert them into components (preserving the `props` typing). You can find out more about this feature in the [Function components](https://volfpeter.github.io/htmy/function-components/) guide.
101
101
 
102
102
  Here is the same example as above, but with function components:
103
103
 
@@ -209,8 +209,9 @@ class _ComponentRenderer:
209
209
  process_node_result(node, result, child_context)
210
210
 
211
211
  if async_todos:
212
- await asyncio.gather(*(process_async_node(n, ctx) for n, ctx in async_todos))
213
- async_todos.clear()
212
+ current_async_todos = async_todos
213
+ self._async_todos = async_todos = deque()
214
+ await asyncio.gather(*(process_async_node(n, ctx) for n, ctx in current_async_todos))
214
215
 
215
216
  if self._error_boundary_todos:
216
217
  await asyncio.gather(
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "htmy"
3
- version = "0.7.0"
3
+ version = "0.7.1"
4
4
  description = "Async, pure-Python rendering engine."
5
5
  authors = ["Peter Volf <do.volfp@gmail.com>"]
6
6
  license = "MIT"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes