Fixed an issue with client-side checking
This commit is contained in:
parent
f440679594
commit
2aaf2e8c1e
4 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
## 0.1.2
|
||||
|
||||
- Fixed an issue with client-side checking
|
||||
|
||||
## 0.1.1
|
||||
|
||||
- Remove warning log from Server Side Rendering
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@aptabase/react",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"type": "module",
|
||||
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
|
||||
"main": "./dist/index.cjs",
|
||||
|
|
|
@ -33,7 +33,7 @@ export function AptabaseProvider({ appKey, options, children }: Props) {
|
|||
export function useAptabase(): AptabaseClient {
|
||||
const ctx = useContext(AptabaseContext);
|
||||
|
||||
if (typeof window !== 'undefined') {
|
||||
if (typeof window === 'undefined') {
|
||||
return {
|
||||
trackEvent: (eventName: string) => {
|
||||
console.warn(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue