How to make now() not update?

Hi!

Does now(-1) stop it's execution so only updates on start?

I have a date selector with it's minDate property set to this:

midnight(
	addMonths(now(60),-1)
)

If I set the pollrate to -1 does it only update at the start of the view or I have to set a custom property to set the start value that is set onStart?

Hi,

See the documentation:

In the description, it says "If you do not specify a pollRate, it will default to 1,000ms. If you do not want this function to poll, use a poll rate of zero."

So now(0) is the way to go.

5 Likes