rio-labs / rio

WebApps in pure Python. No JavaScript, HTML and CSS needed
https://rio.dev
Apache License 2.0
1.32k stars 38 forks source link

Extend `key` to Accept Values other than `str` #56

Closed mad-moo closed 3 months ago

mad-moo commented 3 months ago

Components accept a key, which is used to recognize components across multiple rebuilds and reconciliations. Keys right now must be strings, but in practice, other values are often available that are equally suited. int in particular is a common one.

Add support for other types. Possible examples: