question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Folding Feature & state is null always

See original GitHub issue

I am using a CompositionLocalProvider like

CompositionLocalProvider(
                    LocalWindowDpSize provides rememberWindowDpSize(),
                    LocalWindowLayoutInfo provides windowLayoutInfoState.value,
                    LocalPosture provides postureState.value
                )

and in my composable

LocalWindowLayoutInfo.current.isSeparating is always false

and

val foldingFeature = LocalWindowLayoutInfo.current.findFoldingFeature()
            if (foldingFeature?.state != FoldingFeature.State.HALF_OPENED) {
                Text(
                    stringResource(screen.resourceId),
                    maxLines = 1,
                    style = SlackCloneTypography.overline,
                )
            }

foldingFeature?.state is always null.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
skydovescommented, Feb 3, 2022

Hey @Anmol92verma, I found the ticket on issuetracker, it seems still fixing on. I’ll trace upcoming versions and let you know if there’s any update!

1reaction
oianmolcommented, Jan 31, 2022

Cool, thanks @skydoves for confirming on the reproducibility at your end. thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

FoldingFeature - Android Developers
Calculates if a FoldingFeature should be thought of as splitting the window into multiple physical areas that can be seen by users as...
Read more >
TripPin Part 10—Basic Query Folding - Microsoft Learn
View function; Replicate OData query folding handlers for: ... (state[Schema]? = null) then GetSchemaForEntity(entity) else state[Schema], ...
Read more >
React hook logging a useState element as null when it is not
Did you try passing mappedProps to the function? The original null value is probably captured in the closure. – Kraylog. Sep 1, 2019...
Read more >
Fold (higher-order function) - Wikipedia
In functional programming, fold refers to a family of higher-order functions that analyze a recursive data structure and through use of a given...
Read more >
Folding composables - DEV Community ‍ ‍
collectAsState(null) Scaffold(modifier = Modifier. ... Calculates if a FoldingFeature should be thought of as splitting the window into ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found