Title: Image disposal removes ImageSource content event when directly passed to the component. · Issue #10625 · NativeScript/NativeScript · GitHub
Open Graph Title: Image disposal removes ImageSource content event when directly passed to the component. · Issue #10625 · NativeScript/NativeScript
X Title: Image disposal removes ImageSource content event when directly passed to the component. · Issue #10625 · NativeScript/NativeScript
Description: Issue Description On iOS, I have an ImageSource that I want to pass to some Image components:
Open Graph Description: Issue Description On iOS, I have an ImageSource that I want to pass to some Image components: X Description: Issue Description On iOS, I have an ImageSource that I want to pass to some Image components: <Image *ngIf="cond" [src]="myImageSource"></Image> <Image *ngIf=&quo...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/10625
X: @github
Domain: github.com
Links:
Viewport: width=device-width
Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Image disposal removes ImageSource content event when directly passed to the component.","articleBody":"### Issue Description\n\nOn iOS, I have an `ImageSource` that I want to pass to some `Image` components:\r\n\r\n```\r\n\u003cImage *ngIf=\"cond\" [src]=\"myImageSource\"\u003e\u003c/Image\u003e\r\n\u003cImage *ngIf=\"otherCond\" [src]=\"myImageSource\"\u003e\u003c/Image\u003e\r\n```\r\n\r\nBut when `Image` is disposed, it clears the content of the provided `ImageSource` (`this.imageSource.ios = null; `), which makes it not reusable!\r\n\r\nhttps://github.com/NativeScript/NativeScript/blob/050601232ac4f424e9d3ba6b711f3ada4afe253b/packages/core/ui/image/index.ios.ts#L29-L41\r\n\r\nNote that when `src` is an `ImageSource`, the `_createImageSourceFromSrc` function does not create but just use the provided `ImageSource`\r\n\r\nhttps://github.com/NativeScript/NativeScript/blob/050601232ac4f424e9d3ba6b711f3ada4afe253b/packages/core/ui/image/image-common.ts#L124-L127\r\n\n\n### Reproduction\n\n_No response_\n\n### Relevant log output (if applicable)\n\n_No response_\n\n### Environment\n\n_No response_\n\n### Please accept these terms\n\n- [X] I have searched the [existing issues](https://github.com/NativeScript/NativeScript/issues) as well as [StackOverflow](https://stackoverflow.com/questions/tagged/nativescript) and this has not been posted before\n- [X] This is a bug report\n- [X] I agree to follow this project's [Code of Conduct](https://github.com/NativeScript/NativeScript/blob/master/tools/notes/CONTRIBUTING.md#coc)","author":{"url":"https://github.com/boutier","@type":"Person","name":"boutier"},"datePublished":"2024-09-12T15:43:16.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":4},"url":"https://github.com/10625/NativeScript/issues/10625"}
route-pattern /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) route-controller voltron_issues_fragments route-action issue_layout fetch-nonce v2:9031c879-c325-9e84-de2c-662b886d837d current-catalog-service-hash 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 request-id BCD0:3EDB51:1DF92B5:280BF8E:6A5BCFCF html-safe-nonce 7f8caab5d7c28798a359a4c3a1a91e65ebe4702a1294691fe72abda635a1308f visitor-payload eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0QwOjNFREI1MToxREY5MkI1OjI4MEJGOEU6NkE1QkNGQ0YiLCJ2aXNpdG9yX2lkIjoiMTA5MDc2MTA5MzI1NjMwMjU0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 visitor-hmac b0bdcdb8bb1bd96b26098c23df8a2178f7ab04486056442cc1bb2f57f65726f8 hovercard-subject-tag issue:2522754916 github-keyboard-shortcuts repository,issues,copilot google-site-verification Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I octolytics-url https://collector.github.com/github/collect analytics-location / fb:app_id 1401488693436528 apple-itunes-app app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/10625/issue_layout twitter:image https://opengraph.githubassets.com/b0ef3f6b1928f4078d1a48912e41afbca3e1ec105f721885285c657f2f2d04e5/NativeScript/NativeScript/issues/10625 twitter:card summary_large_image og:image https://opengraph.githubassets.com/b0ef3f6b1928f4078d1a48912e41afbca3e1ec105f721885285c657f2f2d04e5/NativeScript/NativeScript/issues/10625 og:image:alt Issue Description On iOS, I have an ImageSource that I want to pass to some Image components: og:image:width 1200 og:image:height 600 og:site_name GitHub og:type object og:author:username boutier hostname github.com expected-hostname github.com None 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b turbo-cache-control no-preview go-import github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git octolytics-dimension-user_id 7392261 octolytics-dimension-user_login NativeScript octolytics-dimension-repository_id 31492490 octolytics-dimension-repository_nwo NativeScript/NativeScript octolytics-dimension-repository_public true octolytics-dimension-repository_is_fork false octolytics-dimension-repository_network_root_id 31492490 octolytics-dimension-repository_network_root_nwo NativeScript/NativeScript turbo-body-classes logged-out env-production page-responsive disable-turbo false browser-stats-url https://api.github.com/_private/browser/stats browser-errors-url https://api.github.com/_private/browser/errors release 9c975978430e9ad293956f2bbdaf153b1bd84a99 ui-target full theme-color #1e2327 color-scheme light dark
URLs of crawlers that visited me.