You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have createReactAPI return a bound version of useEntities whose single argument is either a bucket, or a function returning a bucket. When the function form is used, a reference to the world the hook is bound to is passed into that function's first argument.
hmans
changed the title
Offer alternative useEntities(function: () => Bucket, deps: any[]) interface
Offer bound ECS.useEntities(world => bucket) API
Nov 30, 2022
Have
createReactAPI
return a bound version ofuseEntities
whose single argument is either a bucket, or a function returning a bucket. When the function form is used, a reference to the world the hook is bound to is passed into that function's first argument.So instead of this:
you'd now do this:
The text was updated successfully, but these errors were encountered: