Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a Gatsby example project #49

Open
andrico1234 opened this issue Nov 17, 2019 · 0 comments
Open

Create a Gatsby example project #49

andrico1234 opened this issue Nov 17, 2019 · 0 comments

Comments

@andrico1234
Copy link
Owner

andrico1234 commented Nov 17, 2019

BST is used with calisthenicsskills, which is built using Gatsby.

SInce gatsby compiles sites to static on the server, it's important to not reference any globals like navigator or window directly in code that gets compiled on the server. Instead any references need to be contained within a componentDidMount(), or useEffect(), so that the global gets referenced at runtime.

It's difficult testing this with a separate site, so having a gatsby example site on the repo for the sole purpose of testing running/compiling with the local version of BST would be incredibly useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant