Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add RunAfterTimeout & RunOnInterval #75

Merged
merged 1 commit into from
Nov 16, 2024

Conversation

maddalax
Copy link
Owner

  1. Adds RunAfterTimeout & RunOnInterval

Usage:

h.Div(
    h.OnLoad(
	  h.RunOnInterval(time.Second,
            js.ConsoleLog("this runs a command every 1s"),
            js.SetInnerHtml(h.Div()),
	  ),
    )
)

h.Div(
    h.OnLoad(
	  h.RunAfterTimeout(time.Second,
            js.ConsoleLog("this runs a command once after a second"),
            js.SetInnerHtml(h.Div()),
	  ),
    )
)

Copy link

codecov bot commented Nov 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.91%. Comparing base (a1af01a) to head (ef83e34).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #75      +/-   ##
==========================================
+ Coverage   72.66%   72.91%   +0.24%     
==========================================
  Files          33       33              
  Lines        2817     2843      +26     
==========================================
+ Hits         2047     2073      +26     
  Misses        729      729              
  Partials       41       41              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@maddalax maddalax merged commit 825c4dd into master Nov 16, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant