binaryage / binaryage/chromex

Can't use datascript at the same time in popup and background

Open
#20 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Clojure
Stars
413
Forks
20
PR merge metrics
No merged PRs in 30d

Description

There's a datascript not defined error in popup page if I put datascript.core/create-conn in both background.core and popup.core.
Once I deleted the datascript code in background.core, the error went away and datascript works in popup.

Can be reproduced in shadow example as this commit.

https://github.com/yqrashawn/chromex/commit/e66dc616

Is this the supposed way and I misunderstand some concepts in chrome extension or shadow-cljs?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.