Active-CSS / active-css

The epic event-driven browser language for UI with functionality in one-liner CSS. Over 100 incredible CSS commands for DOM manipulation, ajax, reactive variables, single-page application routing, and lots more. Could CSS be the JavaScript framework of the future?
https://activecss.org
Other
42 stars 7 forks source link

Allow reactive variables to work if undefined at first render #202

Closed bob2517 closed 2 years ago

bob2517 commented 2 years ago

Currently, reactive variables need a variable present prior to rendering in order to work.

This isn't very intuitive. Reactive variables when coded, should work regardless of whether the variable is undefined initially or not. If at some point the variable is ready, the placeholder should update. It should just leave the placeholder empty if it is undefined. The current rule that a variable should be defined prior to rendering is unnecessary.

Workarounds have been needed up to now.

This is fixed on the 2.9.0 branch.

bob2517 commented 2 years ago

Closing in preparation for release.