JavaScript Rule Engines
Does anyone have any suggestions for rule engines that can be used to validate js objects. Other than ‘json-rule-engine’ and preferable something that works well with react via hooks?
Thanks
https://en.wikipedia.org/wiki/Rete_algorithm
what is particularly cool is that it builds an optimized database to store partially matched antecedents and update the database as new facts are added, triggering rules that cause side effects and change the facts. Facts that can no longer match rules get unlinked and reclaimed by the garbage collector. It seems like an answer to the problem of "maintaining the state of a javascript application that gets updated from asynchronous data sources" but I have not seen it done.