Skip to content

Commit

Permalink
Allows using react suspense without error (#63)
Browse files Browse the repository at this point in the history
* Allows react using suspense without error
* fix mismatched types
  • Loading branch information
HugoMcPhee committed May 12, 2020
1 parent aa26d55 commit 117f5f7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/ReactBabylonJSHostConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@ const ReactBabylonJSHostConfig: HostConfig<
{},
TimeoutHandler,
NoTimeout
> = {
> & {
hideInstance: (instance: HostCreatedInstance<any>) => void;
unhideInstance: (instance: HostCreatedInstance<any>, props:Props) => void;
} = {
// This has the reconciler include in call chain ie: appendChild, removeChild
get supportsMutation(): boolean {
return true
Expand Down Expand Up @@ -426,6 +429,10 @@ const ReactBabylonJSHostConfig: HostConfig<
return false
},

hideInstance(instance: HostCreatedInstance<any>) {},

unhideInstance(instance: HostCreatedInstance<any>, props: Props) {},

createTextInstance: (): any => {
return undefined
},
Expand Down

0 comments on commit 117f5f7

Please sign in to comment.