Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/authentication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @baseapp-frontend/authentication

## 4.0.5

### Patch Changes

- Remove `useEffect` hook that queues the logout listener.

## 4.0.4

### Patch Changes
Expand All @@ -8,7 +14,6 @@
- Fix `useLogin` adding optional chaining to a problematic expression.
- Move `InitialProfileProviderForTesting` around.


## 4.0.3

### Patch Changes
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
'use client'

import { useCallback, useEffect } from 'react'

import {
LOGOUT_EVENT,
ServerSideRenderingOption,
Expand Down Expand Up @@ -65,15 +63,6 @@ const useCurrentProfile = ({ noSSR = true }: ServerSideRenderingOption = {}) =>
}
}

const removeCurrentProfile = useCallback(() => setCurrentProfile(null), [])

useEffect(() => {
eventEmitter.on(LOGOUT_EVENT, removeCurrentProfile)
return () => {
eventEmitter.off(LOGOUT_EVENT, removeCurrentProfile)
}
}, [])

if (isSSR) {
return {
currentProfile: getProfileFromCookie({ noSSR }),
Expand Down
2 changes: 1 addition & 1 deletion packages/authentication/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/authentication",
"description": "Authentication modules.",
"version": "4.0.4",
"version": "4.0.5",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
7 changes: 7 additions & 0 deletions packages/components/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @baseapp-frontend/components

## 0.0.26

### Patch Changes

- Updated dependencies
- @baseapp-frontend/authentication@4.0.5

## 0.0.25

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@baseapp-frontend/components",
"description": "BaseApp components modules such as comments, notifications, messages, and more.",
"version": "0.0.25",
"version": "0.0.26",
"main": "./index.ts",
"types": "dist/index.d.ts",
"sideEffects": false,
Expand Down
Loading