Last active
July 4, 2021 02:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//pre-existing imports here | |
import { encodeParseQuery } from "@parse/react-ssr"; | |
import Parse from "parse"; | |
export async function getServerSideProps() { | |
const parseQuery = new Parse.Query("Message"); | |
return { | |
props: { | |
parseQuery: await encodeParseQuery(parseQuery), // Return encoded Parse Query for server side rendering | |
}, | |
}; | |
} | |
//pre existing code here |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment