Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(refine): add useNewQueryKeys: true to options #377

Merged
merged 4 commits into from
Nov 13, 2023
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
2 changes: 1 addition & 1 deletion refine-nextjs/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<Link
href={item.route}
href={item.route ?? "/"}
className={selectedKey === item.key ? "active" : ""}
>
{item.label}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-auth0/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-google/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
1 change: 1 addition & 0 deletions refine-nextjs/template/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout): JSX.Element {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-react/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 2 additions & 2 deletions refine-react/template/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="refine | Build your React-based CRUD applications, without constraints." />
<meta data-rh="true" property="og:image" content="https://refine.dev/img/refine_social_new.png" />
<meta data-rh="true" name="twitter:image" content="https://refine.dev/img/refine_social_new.png" />
<meta data-rh="true" property="og:image" content="https://refine.dev/img/refine_social.png" />
<meta data-rh="true" name="twitter:image" content="https://refine.dev/img/refine_social.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
1 change: 1 addition & 0 deletions refine-react/template/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-remix/plugins/_base/app/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/chakra/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/mantine/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/mui/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
1 change: 1 addition & 0 deletions refine-remix/template/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-vite/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 2 additions & 2 deletions refine-vite/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<meta
data-rh="true"
property="og:image"
content="https://refine.dev/img/refine_social_new.png"
content="https://refine.dev/img/refine_social.png"
/>
<meta
data-rh="true"
name="twitter:image"
content="https://refine.dev/img/refine_social_new.png"
content="https://refine.dev/img/refine_social.png"
/>
<title>
refine - Build your React-based CRUD applications, without
Expand Down
1 change: 1 addition & 0 deletions refine-vite/template/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down