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 additional (svelthree-specific) lifecycle logic #181

Merged
merged 3 commits into from
Oct 31, 2022

Conversation

vatro
Copy link
Owner

@vatro vatro commented Oct 31, 2022

Closes #180
Closes #175
Closes #176

Vatroslav Vrbanic added 3 commits October 31, 2022 12:42
- Completely remove importing `self` from `svelte/internal` and it's usage (`_self`). This was added long time ago but makes no sense, I've probably got it wrong somewhere 🤷‍♂️.
- Use snake case (#110)
- Properly implement additional lifecycle callbacks:
  - sync / async usage
  - new generic `SvelthreeLifecycleCallback` type incl. local `CurrentComponentType`
- Improve related comments / intellisense.
…AssignedMaterial> (#180)

Use `Foo<AssignedMaterial>` instead of `Foo<FooAssignableMaterial>` in `Mesh.d.ts` and `Points.d.ts` in order to correctly infer assigned Material (_intellisense_).
@vatro vatro added this to the 1.0.0-next.1 milestone Oct 31, 2022
@vatro vatro self-assigned this Oct 31, 2022
@vatro vatro merged commit dfcec8b into dev Oct 31, 2022
@vatro vatro deleted the refactor-lifecycle-methods branch October 31, 2022 12:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment