Skip to content

Automatically convert JS hooks to IDOM hooks #541

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

Closed
Archmonger opened this issue Nov 27, 2021 · 2 comments
Closed

Automatically convert JS hooks to IDOM hooks #541

Archmonger opened this issue Nov 27, 2021 · 2 comments
Labels
priority-3-low May be resolved one any timeline.

Comments

@Archmonger
Copy link
Contributor

Archmonger commented Nov 27, 2021

Current Situation

Hooks within react libraries, for example, usePagination hook within React-Table currently need to be manually rewritten in order to function in IDOM.

Proposed Changes

Investigate whether JS hooks can automatically be converted to Python hooks in some situations.

Implementation Details

See if transpilers, such as Js2Py can be used to convert hooks automatically.

Or if we can somehow wrap the hook javascript and inject some client <-> server handler logic on-top.

@Archmonger Archmonger added the flag-triage Not prioritized. label Nov 27, 2021
@rmorshea rmorshea added enhancement and removed flag-triage Not prioritized. labels Jan 9, 2022
@rmorshea rmorshea added this to the 3.0 milestone Jan 11, 2022
@rmorshea rmorshea added the priority-3-low May be resolved one any timeline. label Jan 13, 2022
@rmorshea
Copy link
Collaborator

rmorshea commented Feb 11, 2022

Pyodide might be the preferred way to accomplish this: https://blog.pyodide.org/posts/react-in-python-with-pyodide/

@rmorshea rmorshea removed this from the Speculative milestone Feb 21, 2023
@Archmonger
Copy link
Contributor Author

Closing this in favor of #786

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-low May be resolved one any timeline.
Projects
None yet
Development

No branches or pull requests

2 participants