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

fix!: leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms. #516

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bubenheimer
Copy link
Contributor

@bubenheimer bubenheimer commented Jan 29, 2024

The PR replaces public constructors on State objects with invoke() factory functions in public companion objects. @StateFactoryMarker can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases.

Fixes #506

…thout remember or similar mechanisms.

The PR replaces public constructors on State objects with `invoke()` factory functions in public companion objects. `@StateFactoryMarker` can only be applied to functions, not constructors. The chosen constructor replacement approach minimizes the required refactoring impact on correct State object usages, requiring no refactoring in the vast majority of cases.

Fixes googlemaps#506
@kikoso kikoso mentioned this pull request May 6, 2024
4 tasks
@kikoso kikoso changed the title fix!: leverage @StateFactoryMarker to flag State object creation wi… fix!: leverage @StateFactoryMarker to flag State object creation without remember or similar mechanisms. May 7, 2024
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.

Flag non-remembered State object creation
2 participants