Comments (7)
I've just tried this locally and I can't reproduce. Do you have a larger runnable reproducing case?
from accompanist.
I created a new repo with the issue demonstrated
from accompanist.
Thanks, I can repro but I don't really understand what's triggering it. I think what is happening is that Glide is re-executing the request whenever the host ComposeView
is attached/detached.
To be honest I'm tempted to kill the Glide and Picasso libraries. Glide has a lot implicit functionality built on top of views which doesn't necessarily make sense for Compose, and Glide hasn't been updated in years.
Compose is built upon Kotlin and Coroutines, so I think it makes sense to only support Coil in the future.
from accompanist.
Ohh I see, If that's the case kill it, anyway thanks for the great library 😊
from accompanist.
@DavidIbrahim @chrisbanes any workaround or quick fix we can use without updating the lib or migrating to coil?
from accompanist.
Had a look at this today, and yep it's due to Glide doing all sorts of implicit automatic behavior that we no longer want.
As a workaround for now, you can do: val glide = Glide.with(LocalContext.current.applicationContext)
. Then either provide it to each GlideImage()
, or use the LocalRequestManager
composition local. See here for more info.
from accompanist.
Thanks @chrisbanes 😃
from accompanist.
Related Issues (20)
- [Navigation Material] BackHandler is not triggered after Activity stop+start HOT 1
- [Navigation Material] DisposableEffect onDispose is not called at the right time for bottom sheet HOT 1
- [Navigation Material] Add deprecated to main README
- [Adaptive]
- accompanist-drawablepainter: PictureDrawable doesn't scale HOT 5
- BottomSheetNavigator#NullPointerException HOT 1
- [Webview] fit parent width issue HOT 1
- How do I remove the Navigation Bars space from the Keyboard? HOT 4
- [Navigation Material] HOT 2
- Missing/incorrect migration documentation for insets-ui HOT 3
- [Permissions] Not seeing permission request dialog HOT 1
- [Permissions] Unable to request MANAGE_EXTERNAL_STORAGE HOT 1
- scroll observation scope does not exist (0.35.0-alpha) HOT 3
- [Question/Feature request] Make OssLicensesMenuActivity themed by or written in Compose HOT 1
- [Permissions] `MutableMultiplePermissionsState.shouldShowRationale` returns true despite some permissions being `Denied(shouldShowRationale=false)` HOT 4
- BottomSheetState's progress on BottomSheetScaffold HOT 1
- Supporting for AnimatedStateListDrawable HOT 2
- Placeholder Library composed to Node migration? HOT 2
- ShouldShowRationale not trigger HOT 1
- [Contribution Offer] List item exit animations HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from accompanist.