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/cache render details #794

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

le-jeu
Copy link
Contributor

@le-jeu le-jeu commented Dec 27, 2024

Clarify renderPortalDetails : its selects, refresh and render portal details.
Split it in a select/refresh part and render part.

Revert part of fa3dddd

Invalidate cache entry if map data is inconsistent with portal details. (from map_data_render)

Hook portal details rendering on portalAdded and portalDetailLoaded event

Use hook data in unique/machina-tools plugins instead of using portalDetail.get.

I'm not satisfied with the data flow I've made for the permanent portal markers, as data is store in two places (portal marker and cache) and createPortalEntity is used to parse data for map data and portal details.
This fix a bit this issue by parsing portal details twice but it feels wrong to me.

Copy link

🤖 Pull request artifacts

file commit
IITC_Mobile-test.apk 29e06ef
test-0.39.1.20241227.152917.zip 29e06ef

See build on website

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.

1 participant