tsolucio / coreBOSwsLibrary

coreBOS webservice Library
9 stars 15 forks source link

Changing coreBOS WS import and fixing undefined window error when used in other app i.e Nextjs app #50

Closed ochu-elhadji closed 2 months ago

ochu-elhadji commented 2 months ago

Issue The library can not be used in Nextjs app due to window error, this is because the pages are rendered on the server where window isnt available. With this fix, developer will be able to use it when he is sure window object is available i.e using inside useEffect hook. image

joebordes commented 2 months ago

LGTM Thanks