Closed wingertge closed 1 year ago
Base: 60.52% // Head: 60.80% // Increases project coverage by +0.27%
:tada:
Coverage data is based on head (
34b5a7b
) compared to base (6cecd1a
). Patch coverage: 100.00% of modified lines in pull request are covered.
:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
The clippy errors aren't me, they're in files unrelated to this commit
Thanks! I'm refactoring how the hydration system works in #559 but I'll merge this and I'll reimplement it in that other PR with the new hydration system.
This adds a way to generate IDs that are stable across the hydration boundary. If a hydration context is not available, it will fall back to a globally incremented ID. This is useful for generating ids for accessible components and similar uses that require a stable globally unique ID.
Example use case
The format boilerplate would likely be abstracted into a custom hook specific to the application, this just provides the primitive so the IDs are guaranteed to be globally unique.