Build prototype hex crawl backend and frontend#1
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| $: if (map) { | ||
| updateSources(); | ||
| } |
There was a problem hiding this comment.
Map view never updates after initial render
The reactive block that refreshes the MapLibre sources only references map, so it executes exactly once when the map instance is created and never again. Subsequent updates to mapDetail—for example when the DM reveals hexes, moves players, or switches to another map—do not trigger updateSources (or re-run fitBounds), leaving the displayed map permanently stale. Consider making the reactive block depend on mapDetail as well (e.g. $: if (map && mapDetail) { updateSources(); fitBounds(); }) so realtime or navigation changes propagate to the rendered layers.
Useful? React with 👍 / 👎.
Summary
Testing
Codex Task