Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This started out as an example to show this package in a more modern workflow and to show what I was able to make work after running into issues like #151. However, I may have discovered a bug introduced in #160.
After fixing the class example, it seems to work fine... but after copying the codebase for the hooks example directly from my project, where it was working, I noticed that the ref is being lost somewhere and not saving the Geojson state. After reverting #160 locally, I was able to get the expected results with the hooks example.
I played with the source code for hours but I could not figure out where the ref is being lost. If the author of the package or @sgmbr could take a look to see if there is a bug or if there's something wrong with the hooks example code, I would greatly appreciate it!
I left in some console logs for debugging this issue. I'll remove them and update the draft status once we've figured out what's going on.