Releases: pmndrs/its-fine
v1.0.8
What's Changed
- chore: optimize context traversal by @CodyJasonBennett in #23
Full Changelog: v1.0.7...v1.0.8
v1.0.7
What's Changed
- fix: support multiple context roots by @dennemark in #21
New Contributors
- @dennemark made their first contribution in #21
Full Changelog: v1.0.6...v1.0.7
v1.0.6
What's Changed
- chore(docs): add missing useFiber by @dcousens in #18
- fix(traverseFiber): skip siblings when ascending by @adventful in #19
New Contributors
- @dcousens made their first contribution in #18
- @adventful made their first contribution in #19
Full Changelog: v1.0.5...v1.0.6
v1.0.5
What's Changed
- fix: alias react-native entry by @CodyJasonBennett in #17
Full Changelog: v1.0.4...v1.0.5
v1.0.4
What's Changed
- fix: gracefully wrap context in production by @CodyJasonBennett in #15
Full Changelog: v1.0.3...v1.0.4
v1.0.3
What's Changed
- fix: prefer js ext for module target by @CodyJasonBennett in #14
Full Changelog: v1.0.2...v1.0.3
v1.0.2
What's Changed
- fix: invalidate context on suspense by @CodyJasonBennett in #13
Full Changelog: v1.0.1...v1.0.2
v1.0.1
What's Changed
- fix(useContextBridge): return a stable context bridge by @CodyJasonBennett in #11
Full Changelog: v1.0.0...v1.0.1
v1.0.0
What's Changed
- feat!: FiberProvider for stable reference in useFiber by @CodyJasonBennett in #10
This release implements a <FiberProvider />
component that binds calls to useFiber
to the React Fiber tree. This ensures that components get a consistent reference to their respective Fiber regardless of their environment. As such, its-fine is now stable and the API has matured.
Note: pmndrs renderers like react-three-fiber implement this internally to make use of
useContextBridge
, so you would only need this when using hooks inside ofreact-dom
orreact-native
.
import * as ReactDOM from 'react-dom/client'
import { FiberProvider } from 'its-fine'
function App() {
const fiber = useFiber()
}
createRoot(document.getElementById('root')!).render(
<FiberProvider>
<App />
</FiberProvider>,
)
Full Changelog: v0.2.1...v1.0.0
v0.2.1
What's Changed
- fix(useContextBridge): don't log in dev mode by @CodyJasonBennett in #9
Full Changelog: v0.2.0...v0.2.1