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

feat: new load DDS event #1980

Merged
merged 1 commit into from
Dec 3, 2024
Merged

feat: new load DDS event #1980

merged 1 commit into from
Dec 3, 2024

Conversation

sxyazi
Copy link
Owner

@sxyazi sxyazi commented Dec 2, 2024

Closes #1381

Closes #1852


This DDS event is used to subscribe to the directory loading state:

ps.sub("load", function(body)
  ya.err("tab:", body.tab)
  ya.err("path:", tostring(body.url))
  ya.err("is_loading:", body.stage.is_loading)
  ya.err("is_loaded:", not body.stage.is_loading)
end)

logs:

"tab:" 1
"path:" "/tmp/test-folder"
"is_loading:" false
"is_loaded:" true

@sxyazi sxyazi merged commit 4bd8b0b into main Dec 3, 2024
6 checks passed
@sxyazi sxyazi deleted the pr-0ff3bddf branch December 3, 2024 01:13
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.

Inactive tabs lose their sorting Add a new load DDS event
1 participant