ellykits / neat-form

Build form on Android using JSON schema; also includes view validation and skip logic.
Apache License 2.0
67 stars 28 forks source link

Optimize dynamic calculations in Notifications. #102

Open ellykits opened 4 years ago

ellykits commented 4 years ago

Toast notifications allow for passing dynamic text to their title/message. Internally the notifications uses a calculation listener that updates UI wherever the calculation is changed when the rules are fired.

Currently when a calculation field changes for a toast notifications all the calculation listeners are fired when we only need to update the UI for toast notification whose calculation has been update. We need to build a dependency map like we do with other field calculations without having to create a new attribute but maintain the field calculation template.