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
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -13333,7 +13333,7 @@
|
||||||
},
|
},
|
||||||
"packages/react": {
|
"packages/react": {
|
||||||
"name": "@aptabase/react",
|
"name": "@aptabase/react",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aptabase/web": "0.2.0"
|
"@aptabase/web": "0.2.0"
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
|
## 0.1.2
|
||||||
|
|
||||||
|
- Fixed an issue with client-side checking
|
||||||
|
|
||||||
## 0.1.1
|
## 0.1.1
|
||||||
|
|
||||||
- Remove warning log from Server Side Rendering
|
- Remove warning log from Server Side Rendering
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@aptabase/react",
|
"name": "@aptabase/react",
|
||||||
"version": "0.1.1",
|
"version": "0.1.2",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
|
"description": "React SDK for Aptabase: Open Source, Privacy-First and Simple Analytics for Mobile, Desktop and Web Apps",
|
||||||
"main": "./dist/index.cjs",
|
"main": "./dist/index.cjs",
|
||||||
|
|
|
@ -33,7 +33,7 @@ export function AptabaseProvider({ appKey, options, children }: Props) {
|
||||||
export function useAptabase(): AptabaseClient {
|
export function useAptabase(): AptabaseClient {
|
||||||
const ctx = useContext(AptabaseContext);
|
const ctx = useContext(AptabaseContext);
|
||||||
|
|
||||||
if (typeof window !== 'undefined') {
|
if (typeof window === 'undefined') {
|
||||||
return {
|
return {
|
||||||
trackEvent: (eventName: string) => {
|
trackEvent: (eventName: string) => {
|
||||||
console.warn(
|
console.warn(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue