buggyj / tiddlywiki-preact

BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Missing signal (param) causes preact exception then all signals stop causing re-rendering #1

Open buggyj opened 2 months ago

buggyj commented 2 months ago

it seems that is we try to access a non-existent signal, an exception is thrown, but then the signals in other (apps) modules stop causing re-renders. As the signals are passed as a list of [[#signal|textreference]] it is possible that the binding can be missing, and so the signal will not be created.

buggyj commented 2 months ago

Maybe use a check list of 'parameters' like with tw macros:

exports.params = [
    {name: "format"}
];
psignals = [name1, name2]
export psignals

where the name1 etc include the type char, one of ':#?', thus pwidget can handle missing values.