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

developer docs #14230

Open
benmccann opened this issue Nov 8, 2024 · 4 comments
Open

developer docs #14230

benmccann opened this issue Nov 8, 2024 · 4 comments

Comments

@benmccann
Copy link
Member

benmccann commented Nov 8, 2024

Describe the problem

There are parts of Svelte I don't understand since the rewrite. This makes it harder for me to contribute, but mostly just harder for me to understand how Svelte interacts with SvelteKit, to have productive conversations with other maintainers, etc.

Describe the proposed solution

Write some basic developer documentation. If the only thing covered were the anchor comments I would be happy enough 😄 I'd really like to understand how hydration, dom creation, and transitions work and interact with those comments.

Importance

would make my life easier

@Ocean-OS
Copy link
Contributor

Ocean-OS commented Nov 9, 2024

Agreed, most of my knowledge of Svelte's internals has come from reading compiled outputs and skimming the source code, which probably isn't a good teacher in the long run.

@dummdidumm
Copy link
Member

Since you're still new to the code base: what specifically would have helped you?

  • overview of file organization?
  • compiler phases intro?
  • signals intro tweaked for specific code base?
  • ..?

@Ocean-OS
Copy link
Contributor

Ocean-OS commented Nov 9, 2024

Probably more information about the compiler(particularly the HTMLx parser), and also some in depth info on the internals would help. For example, what the differences between the different effects (template_effect, user_effect) are, and also maybe some examples of the different internal functions, such as $.init, $.reset and $.pop. Another thing about effects that would be nice to know is how re-runs are batched. It would be nice to have actual documentation on the entire svelte/internal package, but I don't know how practical that is, considering how often it may change.

@paoloricciuti
Copy link
Member

This is actually something I had the idea of doing for signals to solidify my knowledge of the reactivity system but I agree, having a general document would be fantastic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants