Action scheduler in node content page is replicated on each view

Wappler Version : 3.9.7
Operating System : mac
Server Model: node
Database Type:
Hosting Type:

Expected behavior

When leaving a content page, an action scheduler should be destroyed

Actual behavior

An action scheduler loaded on a content page, continues to run after loading a new content page.

Additionally, if a user returns to the content page with the scheduler, it creates a new instance and runs multiple times (once for every time the content page is viewed)

How to reproduce

In a node project using a basic layout, create a content page with an action scheduler element that auto-runs.

Visit the content page – see the scheduled action run

Navigate to another content page – see the action continue to run

Navigate back and see the scheduler run twice.

1 Like

Please test following update.

dmxScheduler.zip (747 Bytes)

Thanks Patrick.

I’ve confirmed in the browser that the new js was loaded, and it doesn’t seem to impact anything.

The scheduled action continues to fire and builds up multiples as the page is revisited.

New update.

dmxScheduler.zip (750 Bytes)

Thanks Patrick, the latest update works as expected.

Fixed in Wappler 4 final