Conversation
✅ Deploy Preview for solid-start-landing-page ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
commit: |
9e2cca0 to
bff6eac
Compare
3a7184d to
1d3f5e5
Compare
|
Hey! Looking to support in any way I can to get this ready, and ideally backported to v1 🙏 This issue has been holding us back from upgrading our very large main codebase past 1.0.10, we have way too much "use server" functionality with transitive imports affected by this, would end up leaking server code to the client without this patch. I ran a couple tests with this locally on my system and it looks great, there are a couple extra tests I would recommend adding which got hairy with previous hacky implementations I had attempted, and would be nice to have for regression testing:
Happy to write these up and submit them as my best guess to match current test patterns just don't want to contribute anything that might slow down the timeline if the tests don't match expected structure Anything else I can do please let me know! |
|
@agoldstein03 Not really sure if it can be backported to 1.0 The two you listed can probably be added, not the third one just because it's tricky to do so |
This PR intends to replace the current directives plugin (TanStack) with our own.
Features:
createServerReference. This limited the server functions for only top-level declaration. The new plugin now allows inner declarations via cloning (this introduces a new API calledcloneServerReference), so now the server functions are able to be registered ahead of time while deferring the actual instance in the exact time it is declared by intention.