Skip to content

How I can uninit kaplay context? #597

Discussion options

You must be logged in to vote

Best suggestion I have for the zillions of people that keep trying to stuff KAPLAY into a React component -- IT JUST DOESN'T WORK. DON'T USE REACT AND KAPLAY AT THE SAME TIME ON THE SAME PAGE IF IT'S A SINGLE PAGE APP (SPA). (although if it isn't a SPA, and going to a new page actually triggers a browser refresh, it should work).

If you must, load the kaplay game "fullscreen" in an <iframe> and then communicate with it using postMessage.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@denisshupenka
Comment options

@lajbel
Comment options

@denisshupenka
Comment options

@dragoncoder047
Comment options

Answer selected by lajbel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants