Skip to content

fix: on make docs-serve, page was constantly refreshing. Now not.#74

Open
ofSingularMind wants to merge 2 commits intomainfrom
LiveServer_Fix_ReloadBug
Open

fix: on make docs-serve, page was constantly refreshing. Now not.#74
ofSingularMind wants to merge 2 commits intomainfrom
LiveServer_Fix_ReloadBug

Conversation

@ofSingularMind
Copy link
Contributor

This PR addresses a bug where the LiveServer preview would keep reloading as constants were redefined. If that doesn't occur for you, maybe pass. The code logic is sound and worked effectively in my case.

]
end

const ALL_EXAMPLES_CONTRIBUTING_NOTE = """
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this constant also be guarded?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:) I'm not sure. It does not cause the re-definition issue like the others.

the just in-memory check should be enough
@bvdmitri
Copy link
Member

I removed the isdefined checks. To me it shouldn't matter at all, those checks also confuse me when I read the code. The IOBuffer change makes sense though and in my experiment that is enough to fix the make docs-serve command. Can you check @ofSingularMind ?

@bvdmitri
Copy link
Member

If those isdefined checks are actually necessary on your end feel free to git revert my commit and we merge

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

Successfully merging this pull request may close these issues.

2 participants