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

with_js_link with stronger invalidation #2780

Conversation

fonsp
Copy link
Owner

@fonsp fonsp commented Jan 17, 2024

With this PR, all js links get invalidated when the cell they appear in becomes queued. This is necessary because one of the dependencies of the cell can define a function whose methods are being deleted by Pluto.

But it's a lot of new code for a rare issue.

Maybe this solution can also be used to solve JuliaPluto/PlutoHooks.jl#15

Copy link
Contributor

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="with_js_link-with-proper-invalidation")
julia> using Pluto

@fonsp fonsp changed the base branch from main to AbstractPlutoDingetjes.Display.with_js_link January 17, 2024 09:36
@fonsp fonsp merged commit a7d146c into AbstractPlutoDingetjes.Display.with_js_link Feb 28, 2024
3 of 16 checks passed
@fonsp fonsp deleted the with_js_link-with-proper-invalidation branch February 28, 2024 15:48
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