We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 997da68 commit aa5abedCopy full SHA for aa5abed
lib/core_dom/web_platform.dart
@@ -91,11 +91,12 @@ class PlatformViewCache implements ViewCache {
91
}
92
93
async.Future<ViewFactory> fromUrl(String url, DirectiveMap directives) {
94
- ViewFactory viewFactory = viewFactoryCache.get(url);
+ var key = "[$selector]$url";
95
+ ViewFactory viewFactory = viewFactoryCache.get(key);
96
if (viewFactory == null) {
97
return http.get(url, cache: templateCache).then((resp) {
98
var viewFactoryFromHttp = fromHtml(resp.responseText, directives);
- viewFactoryCache.put(url, viewFactoryFromHttp);
99
+ viewFactoryCache.put(key, viewFactoryFromHttp);
100
return viewFactoryFromHttp;
101
});
102
0 commit comments