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

Refactor async effects #9

Open
JonasGruenwald opened this issue Dec 1, 2024 · 0 comments
Open

Refactor async effects #9

JonasGruenwald opened this issue Dec 1, 2024 · 0 comments

Comments

@JonasGruenwald
Copy link
Owner

Two issues:

  1. Async effects for data fetching like the one used in the processes server component use the server component's subject to send a message to it(self), when they should instead just use dispatch from the effect, reference for how this should work: https://github.com/hayleigh-dot-dev/dialup/blob/762a6db149e2e161318a9712561fad033b3a4909/src/dialup.gleam#L309
  2. Most data fetching is not async yet, mainly just the OTP status stuff – this should be changed as we now allow inspecting other nodes, so data fetching may cause delays and shouldn't block server component loops
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

No branches or pull requests

1 participant