No need for local state for now

This commit is contained in:
Belén Curcio
2018-09-27 11:47:55 -03:00
parent 073036e24f
commit 465603526e
3 changed files with 1 additions and 50 deletions
@@ -1,4 +1,3 @@
import qs from "query-string";
import { commitLocalUpdate, Environment } from "relay-runtime";
import {
@@ -17,12 +16,6 @@ export default async function initLocalState(environment: Environment) {
// Create the Local Record which is the Root for the client states.
const localRecord = createAndRetain(environment, s, LOCAL_ID, LOCAL_TYPE);
// Parse query params
const query = qs.parse(location.search);
// Set default view.
localRecord.setValue(query.view || "MODERATE", "view");
root.setLinkedRecord(localRecord, "local");
});
}