You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have verified that I use latest version of all @mantine/* packages
What version of @mantine/* packages do you have in package.json?
7.13.5
What package has an issue?
@mantine/notifications
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
The problem is when i use notifications.show on page then come this error:
"use client";import{Center,Flex,Table}from"@mantine/core";import{Suspense,useEffect,useState}from"react";import{deleteGroup,getGroups}from"@/app/cp/groups/actions";importTableButtonfrom"@/components/TableButton";import{notifications}from"@mantine/notifications";exportdefaultfunctionPage(){const[groups,setGroups]=useState<any[]>([]);useEffect(()=>{getGroups().then(setGroups);},[]);constdeleteServerGroup=async(id: string)=>{if(confirm('Are you sure you want to delete this group?')){constres=awaitdeleteGroup(id);if(res){constgroups=awaitgetGroups();setGroups(groups);notifications.show({title: "System",message: "Group deleted successfully",color: "green",withBorder: true,radius: 'md'});}else{notifications.show({title: "System",message: "Failed to delete group",color: "red",withBorder: true,radius: 'md'});}}}return(<Centerw={'100%'}><Table.ScrollContainerminWidth={'20dvw'}w={'35dvw'}><TablestickyHeaderhighlightOnHoverwithTableBorder><Table.Thead><Table.Tr><Table.Thw={'5rem'}>Name</Table.Th><Table.Thw={'1rem'}style={{textAlign: 'right'}}>Servers</Table.Th><Table.Thw={'2rem'}style={{textAlign: 'right'}}><TableButtonsize={24}type={'add'}href={'/cp/groups/create'}/></Table.Th></Table.Tr></Table.Thead><Table.Tbody><Suspensefallback={null}>{groups.map(group=>(<Table.Trkey={group.id}><Table.Tdw={'5rem'}>{group.name}</Table.Td><Table.Tdw={'1rem'}style={{textAlign: 'right'}}>{group.servers}</Table.Td><Table.Tdw={'2rem'}><Flexalign={'center'}justify={'flex-end'}gap={5}><TableButtontype={'edit'}href={`/cp/groups/${group.id}`}/><TableButtontype={'delete'}onClick={()=>deleteServerGroup(group.id)}/></Flex></Table.Td></Table.Tr>))}</Suspense></Table.Tbody></Table></Table.ScrollContainer></Center>);}
Error: Route "/cp/servers/[id]": A component accessed data, headers, params, searchParams, or a short-lived cache without a Suspense boundary nor a "use cache" above it. We don't have the exact line number added to error messages yet but you can see which component in the stack below.
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
I would be willing to implement a fix for this issue
The text was updated successfully, but these errors were encountered:
Dependencies check up
What version of @mantine/* packages do you have in package.json?
7.13.5
What package has an issue?
@mantine/notifications
What framework do you use?
Next.js
In which browsers you can reproduce the issue?
All
Describe the bug
The problem is when i use notifications.show on page then come this error:
If possible, include a link to a codesandbox with a minimal reproduction
No response
Possible fix
No response
Self-service
The text was updated successfully, but these errors were encountered: