-
const stream = atom<MediaStream | null>(null);
const closeStream = action(stream, "close", (s) =>
s
.get()
?.getTracks()
.forEach((v) => s.get()?.removeTrack(v))
);
onMount(stream, () => {
const newStream = new MediaStream();
stream.set(newStream);
return closeStream;
}); We cannot currently do this using |
Beta Was this translation helpful? Give feedback.
Answered by
ai
Apr 16, 2023
Replies: 1 comment 5 replies
-
Looks like this error is not from Nano Stores. Maybe you don’t have Can you show more details of this issue? Error stack trace. What did you do to get it? |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
But am I right that the same store initializers will be called on the server, when you don’t have
MediaStream
?So you need some
if
to detect server and do another initializing there.