You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is an idea for an extension to the JSRuntime. With this extension, you can pass the Component to import and execute JS files, eliminating the need to manually write the directory. Here is an example:
I've created two examples: one where you need to use 'disposable,' and the other automatically disposes of the reference after the execution is completed.
You can find the examples here
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Here is an idea for an extension to the JSRuntime. With this extension, you can pass the Component to import and execute JS files, eliminating the need to manually write the directory. Here is an example:
I've created two examples: one where you need to use 'disposable,' and the other automatically disposes of the reference after the execution is completed.
You can find the examples here
JSExtensionsWithDisposible.cs
JSExtensions.cs
Beta Was this translation helpful? Give feedback.
All reactions