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

feat(post-processing): refactor of existing effects #64

Merged
merged 8 commits into from
Oct 12, 2023

Conversation

Tinoooo
Copy link
Contributor

@Tinoooo Tinoooo commented Sep 29, 2023

No description provided.

@Tinoooo Tinoooo requested review from alvarosabu and JaimeTorrealba and removed request for alvarosabu September 29, 2023 09:00
@Tinoooo Tinoooo self-assigned this Sep 29, 2023
src/core/effects/Bloom.vue Show resolved Hide resolved
@@ -44,11 +44,30 @@ export const makePropWatcher = <T, E>(
* @param {Ref<E>} target - A Ref representing the target object to be updated.
* @param {() => E & { dispose?(): void }} newPlainObjectFunction - A function that creates a new plain object to retrieve the defaults from with an optional "dispose" method for cleanup.
*/
export const makePropWatchers = <T, E>(
propGettersAndPropertyPaths: (string | (() => T))[][],
export const makePropWatchers = <E>(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this really useful, @andretchen0 @JaimeTorrealba maybe we should consider it cross-packages.

Do we have enough utils around to make a package?

@Tinoooo Tinoooo merged commit a2afd3f into main Oct 12, 2023
@Tinoooo Tinoooo deleted the feature/59-refactor-existing-effects branch October 12, 2023 13:35
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

Successfully merging this pull request may close these issues.

None yet

3 participants