Skip to content

Support using Resources as parameter to resolve#285

Merged
StefMa merged 1 commit into
mainfrom
support_res_call
Jul 22, 2026
Merged

Support using Resources as parameter to resolve#285
StefMa merged 1 commit into
mainfrom
support_res_call

Conversation

@StefMa

@StefMa StefMa commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

There is a new copose lint warning LocalContextGetResourceValueCall that forces us to use LocalResources over LocalContext – for good reasons.
Since internally we use sometimes a LaunchedEffect that takes an argument that is NOT a @Composable, we still have to use LocalContext.current. Which is not an issue generally, however, we are now gett the Context as well as the Resources.

I just added a simply overload to let us use TextRef with a resource as well.
With that change, we only need to get LocalResources and no LocalContext anymore.

@elmira-y elmira-y left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Looks good 🚢

@StefMa
StefMa force-pushed the support_res_call branch from c348474 to e7281b0 Compare July 22, 2026 07:44
@StefMa
StefMa merged commit 3221efb into main Jul 22, 2026
5 checks passed
@StefMa
StefMa deleted the support_res_call branch July 22, 2026 07:52
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.

2 participants