Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fetch assets in dynamic content (#1369, #1587, #1630, #1936, #2064) #2240

Closed

Conversation

mskec
Copy link
Contributor

@mskec mskec commented Mar 10, 2023

This PR fixes crashes with images inside dynamic content.

From looking at it, the problem was that assets weren't loaded for images inside dynamic content because resolveAssets was executed before resolvePagination.
To resolve this, I've added resolveAssets as a step in relayout which forced me to add a bunch of async/await all over resolvePagination.

fixes: #1369, #1587, #1630, #1936, #2064

@mskec mskec force-pushed the issue-2064/image-inside-dynamic-content branch from 15fa25e to 5a967f1 Compare March 10, 2023 20:23
@mskec mskec force-pushed the issue-2064/image-inside-dynamic-content branch from 5a967f1 to b1fce3b Compare March 10, 2023 21:41
@mskec
Copy link
Contributor Author

mskec commented Mar 22, 2023

Hi @jeetiss, what do you think about this PR? Do you want me to improve something?

@tigerza117
Copy link

Approve !

@mskec
Copy link
Contributor Author

mskec commented Jul 12, 2023

Hi @jeetiss, @diegomura, it's been a couple of months since opening the PR without receiving any feedback.

Can you please take a look at it? Please let me know if you have some concerns on how it's implemented and maybe we can find another solution.

The PR is fixing a couple of issues that others have reported and they and me would love to have it merged.

@tigerza117
Copy link

@mskec I have some issue font load by fs not working in render function

@mskec
Copy link
Contributor Author

mskec commented Jul 31, 2023

@tigerza117 do you have problem when you use the branch from this PR or in general?

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.

Render prop method on View does not work for Images
2 participants