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

Listen to active note changes #1015

Merged
merged 1 commit into from
Jan 7, 2025

Conversation

zeroliu
Copy link
Collaborator

@zeroliu zeroliu commented Jan 7, 2025

We need to listen to active note change from obsidian now that Relevant is no longer re-rendering all the time.

  • Created useActiveFile hook to always return the latest active file.
  • Added EventTargetContext to avoid props drilling of eventTarget

@zeroliu zeroliu requested a review from logancyang January 7, 2025 07:10
@logancyang logancyang merged commit a02d8cc into logancyang:master Jan 7, 2025
2 checks passed
@logancyang logancyang mentioned this pull request Jan 7, 2025
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.

2 participants